OpenWrt Forum Archive

Topic: How to interpret correctly localized filenames on ext3 partitions ?

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

On my NSLU2 (OpenWrt Kamikaze r12674 / Linux 2.6.26.3 armv5teb) :

I have some trouble interpreting correctly filenames containing emphasized characters on an ext3 partitions where the files were written from a Windows or Linux PC.
So again back any issue with code pages and charset but on ext3 partitions.

For example a folder named "Amélie Poulain" is displayed "Am├®lie Poulain" on the NSLU2

What is the default code page used by mount for ext3 file systems ?
Is it possible to change it ? (according the mount manual it seems that not)

I think I would need to use a codepage of 850 (like on Windows XP) and a charset of iso8859-15 or utf8 (to be "emphasis compliant")

Does anyone have an idea about how to solve this ?
Thanks a lot.

For info here are the loaded modules :

root@NSLU2:~# lsmod
Module                  Size  Used by    Not tainted
fuse                   35260  0
sg                     19952  0
usb_storage            58759  0
ehci_hcd               29740  0
ohci_hcd               14884  0
sd_mod                 15344  0
tun                     5700  0
nbd                     6796  0
vfat                    7136  0
fat                    35388  1 vfat
ext3                   84740  0
jbd                    27444  1 ext3
cifs                  222852  0
nls_utf8                 768  0
nls_iso8859_15          3360  0
nls_iso8859_1           2848  0
nls_cp850               3616  0
nls_cp437               4384  0
usbcore                84468  4 usb_storage,ehci_hcd,ohci_hcd
scsi_mod               59712  3 sg,usb_storage,sd_mod
nls_base                4096  8 vfat,fat,cifs,nls_utf8,nls_iso8859_15,nls_iso8859_1,nls_cp850,nls_cp437
 dos charset = CP850
 unix charset = UTF8

seem to be the default options in smb.conf but are not accepted when added.

What version of samba do you use? Samba 2 does not have utf-8 support!
Do you want to use this disk with your NSLU2 permanently? Then you could rename all files on the disk from utf-8 to iso-8859-1 using "convmv".

samba 2.0.10-4

And the ideal target would be to be able to read correctly the disk whatever on which machine/OS it is connected...

The discussion might have continued from here.