Hi Andrzej,

Thanks for sharing your findings.

On Sun, 25 Nov 2007, Andrzej Szelachowski wrote:

> I'm using slackware 12.0, with selfcompiled 2.6.22.6 Linux kernel, fuse-2.7.0 
> and ntfs-3g-1.1120.
> 
> I have strange problems with Polish national characters similar to the one 
> described at
> http://www.ntfs-3g.org/support.html#locale
> 
> So I tried to by-pass it as suggested with "locale" option.

You can't really by-pass the problem using "locale". The "locale" option is 
a horrible potential workaround when your locale environment is not 
correctly installed and configured.

Why the "locale" option is horrible? Because it makes users think that it 
will solve their problems. Definitely not!!! Things must work perfectly 
without the "locale" option. If not then you already have a major problem 
with your distribution.

During mount the ntfs-3g driver reads your locale environment and converts
the file names to this character set. If 

        - locale doesnt' specify anything
        - locale specifies the wrong setting
        - the correct conversion tables are not installed
        - the correct conversion tables are not accessible
        - terminal can not display the characters
        - softwares can not handle the characters

then one can not see the files correctly or at all.

The ntfs-3g driver absolutely can not do anything about this. The problem 
is irrelevant to the ntfs-3g driver. The driver simply just tries to 
convert the otherwise unrepresentable NTFS file names to something the 
distribution specifies. If the distribution specific locale setup or 
configuration is wrong then it must be fixed there, not in the ntfs-3g 
driver.

Your experimentation shows that the locale handling on Slackware is pretty
broken. 

In the future at some point the driver will default to UTF8 conversion. 
Hopefully that will cause less confusion for people since more and more 
distro supports this increasingly better.

Thanks,
            Szaka


> I put following in to fstab:
> /dev/sda1        /C               ntfs-3g        locale=pl_PL   1   0
> 
> 
> and tried:
> 
> ntfs-3g /dev/sda1 /C
> ntfs-3g /dev/sda1 /C -o locale=pl_PL
> ntfs-3g /dev/sda1 /C -o locale=pl_PL.iso-8859-2
> ntfs-3g /dev/sda1 /C -o defaults
> mount -t ntfs-3g /C
> mount -t ntfs-3g /dev/sda1 /C
> mount -t ntfs-3g /dev/sda1 /C -o defaults
> mount /C
> mount /dev/sda1
> mount -tntfs-3g -odefaults /dev/sda1 /C
> 
> but none with good results:
> 
> 
> for curiosity I tried also:
> ntfs-3g /dev/sda1 /C -o locale=pl_PL.utf8
> it was not correct setting as I use "pl_PL" in my system.
> However this managed to get directories and files with Polish national 
> characters displayed. It was not correct display but at least it was visible.
> 
> 
> So after some trials I managed to have Polish letters displayed correctly 
> following way;
> 
> I put into fstab:
> 
> /dev/sda1        /C               ntfs-3g        defaults   1   0
> 
> 
> and as a root I umounted and mounted sda1 partition using kdf (KDiskFree).
> 
> 
> When I tried to mount using console it didn't work despite the fact that the 
> command I used i.e.
> 
> mount -tntfs-3g -odefaults /dev/sda1 /C
> 
> is supposed to be the same as the one used by kdf.
> I know this from error messages that appears when someone using kdf is trying 
> to mount already mounted partition.
> 
> This behavior does not have much sense.
> 
> But maybe you can guess what is wrong.
> 
> best regards
> 
> Andrzej

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to