Register FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Tue Jun 18, 2013 06:39



Post new topic Reply to topic  [ 5 posts ] 
locale problem 
Author Message

Joined: Mon Jan 21, 2008 21:29
Posts: 3
Post locale problem
Hello! Dear szaka:

I'm trying to get ntfs-3g to run in an embedded environment to access my usb drive
it works mostly great but i've noticed that national filenames are missing when
its mounted with NTFS-3G...

here is my kernel configurations
###########################################
#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="utf8"
CONFIG_NTFS_FS=y
CONFIG_NTFS_DEBUG=y
CONFIG_NTFS_RW=y
#
# Native Language Support
#
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_CODEPAGE_437=m
CONFIG_NLS_ISO8859_1=m
CONFIG_NLS_UTF8=m
###########################################

i mount with ntfs:

#mount -t ntfs /dev/sda1 /mnt
#ls /mnt
english.txt d8-f.txt
^^^^there's chinese letters ,it's not correct but ok

then mount with ntfs-3g:
#umount /mnt
#ntfs-3g /dev/sda1 /mnt -o force
#ls /mnt

english.txt
^^^^FILE MISSING

I know that NTFS-3G uses the locale defined in the environment
But for some reason i can't set my national locale support in environment
If I dont care character conversion properly or not!
Is it possible to show my national filenames ?
If it's not ntfs-3g problem could you give some advices besides ask my distribution vendor?

thanks you very much!


Mon Jan 21, 2008 21:34
Profile

Joined: Mon Jan 21, 2008 21:29
Posts: 3
Post 
#mount -t ntfs /dev/sda1 /mnt
#ls /mnt
english.txt d8-f.txt <==there's chinese letters ,it's not correct but ok

then mount with ntfs-3g:
#umount /mnt
#ntfs-3g /dev/sda1 /mnt -o force
#ls /mnt

english.txt ________ <==FILE MISSING


Mon Jan 21, 2008 21:37
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1645
Post 
Did you check out http://ntfs-3g.org/support.html#locale3 ?


Mon Jan 21, 2008 21:44
Profile

Joined: Mon Jan 21, 2008 21:29
Posts: 3
Post 
Yes, I checked that link already. I know if set correct locale everything will be fine.

However I'm running on a embedded system, it will consume too much memory if I put locale data (including Asian countries) into it.

Actually we have a browser application running on the system, we don't expect the file/folder name show correctly on the console. It can be just a hex string and let the browser do the parsing/render job.

So I'm wondering if it's possible to let ntfs-3g just ignore locale data and just show the raw hex string on file/folder name, instead of showing nothing when locale is not setting properly.


Tue Jan 22, 2008 07:17
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1645
Post 
Ok, I see.

Unfortunately it can't show the raw hex string since it includes zeros which would mean end of file name, so you wouldn't get the real file names. The data must be bijectively converted to something.

Two potential solutions:

1) Using iconv(3). I've played with it but needs more work and may not be the optimal solution.

2) Built-in conversion support, compile and run-time settable. This wasn't tried yet.


Tue Jan 22, 2008 17:00
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.