Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 26th, 2002, 02:35 AM
Oraly Oraly is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Stavanger
Posts: 83 Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 20 h 13 m 24 sec
Reputation Power: 8
Angry Peculiar Samba problem with norwegian charset

Hi I'm wondering if anyone could help me out with this problem that is really bugging me. I've set up samba alright, and it working perfect except for one little detail that I noticed the other day. I tried to copy a filname with the nowegian char ø, over to a samba share, then it turned into an o.

I then checked out the other norwegian chars, and they're working ok.
So I dont't understand when I've set these lines in the smb.conf

character set = ISO8859-1
client code = 850 // norwegian
valid chars = æ:Æ ø:Ø ö:Ö å:Å ä:Ä

why it's only the ø:Ø which isn't accepted.

And yes I've got my linux kernel set to handle these chars, cos I've made some dirs on the shares form my linux shell to test it out, and then the ø, becomes a "Cent-sign", and the Ø, becomes a "Yen-sign", when I view them on my winXP system

So if there is anyone who know the answer to my problem, please don't hesitate to reply.

Reply With Quote
  #2  
Old July 27th, 2002, 03:46 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
i didn´t use samba for quite some time. but i remember, i had to use a script (/usr/lib/samba/make_codepage or similar) to make a codepage translation file and setup another parameter additionally to the ones you told already to use it. (german character set, same problem). if you can´t find it, i´ll dig in my old configuration files...

something else from the web (could be misleading though...):
Quote:
from the samba docs:
1.10.7. Other Character Sets
If you have problems using filenames with accented characters in them (like the German, French or Scandinavian character sets) then I recommend you look at the "valid chars" option in smb.conf and also take a look at the validchars package in the examples directory.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old July 30th, 2002, 03:46 AM
Oraly Oraly is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Stavanger
Posts: 83 Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 20 h 13 m 24 sec
Reputation Power: 8
Well, I don't think the valid chars is the problem. It seems that the iso-8859-1 just assigns the wrong chars when ø and Ø are used. Foud some hints about this in this document:
http://www.linuxvoodoo.com/howto/HO...TO-2.html#ss2.4

I'll try to figure it out myself, but if anyone has experience with this, please let me know

Ta, ta...

Reply With Quote
  #4  
Old July 30th, 2002, 11:57 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
maybe your samba was delivered with old binary codepage files. does it work on the command line? if yes, this should be your solution:

from "man 1 make_smbcodepage":
Quote:
All codepage files in the Samba source/codepages directory are compiled and installed when a 'make install' command is issued there.

but this command can change them afterwards. so you don´t have to modify /usr/lib/kbd/codepage.850 (or similar) but the /usr/lib/samba/codepages/codepage.850 (or similar) and then use this command to re-compile.

maybe you have to install the sources to get the codepage source files, but you don´t need to recompile

Reply With Quote
  #5  
Old August 2nd, 2002, 03:11 AM
Oraly Oraly is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Stavanger
Posts: 83 Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 20 h 13 m 24 sec
Reputation Power: 8
Well, now I think it just might be a problem with WinXP somehow, cos when I used smbclient to browse the shares on both the linux and WinXP every thing worked as it should.
So it just might be something in the codepages of windows that is causing all the trouble.
Got to locate where these settings are done in win, and change the cent to ø, and yen to Ø.

Reply With Quote
  #6  
Old August 2nd, 2002, 03:31 AM
Oraly Oraly is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Stavanger
Posts: 83 Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level)Oraly User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 20 h 13 m 24 sec
Reputation Power: 8
Thumbs up HA, ha, got it!!!

The problem was in XP alright, and I fixed it from the controlpanel fairly easy.

Just clicked the regional and language settings, went to the advanced menu, set the "Language for non-unicode programs" to norwegian (and to be on the safe side I enabled all the codepage conversion tables for norwegian too).

Then I restarted windows, and what do you know, every letter I need to use is working with Samba.

Yohooooooooo!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Peculiar Samba problem with norwegian charset


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway