files with unusual character sets are sometimes completely invisible to the driver : locale not set correctly

Bug #132357 reported by Andrew Gorcester
38
Affects Status Importance Assigned to Milestone
gnome-panel (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Gutsy by Niko Cavallini
sysvinit (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Gutsy by Niko Cavallini

Bug Description

Binary package hint: ntfs-3g

When I boot my computer, files with Japanese characters in my NTFS partition are simply not displayed through the ntfs-3g driver. They are not shown in Nautilus, or on the command line, and the driver apparently doesn't recognize that they exist at all. However, unmounting and remounting manually makes them display properly.

The relevant line in my /etc/fstab is:

UUID=0A00172E00171FED /media/hdd1 ntfs-fuse defaults,uid=1000 0 0

The only possible explanation I can think of is that when I mount it manually (sudo umount /media/hdd1; sudo mount /media/hdd1) this is somehow different from what is done at boot.

Related branches

Revision history for this message
Niko Cavallini (niko-cava) wrote :

Hi, I believe you are missing a "locale=INSERTYOURCURRENTLOCALE" option to display especial characters, as guided by the man page "man ntfs-3g" or by the usage section of the ntfs-3g page.

Please test and report your findings.

Revision history for this message
Andrew Gorcester (andrewsg) wrote :

Adding locale=en_US.UTF-8 does solve the problem. Thank you for the help.

I think it would be helpful if the driver accepted a tag like nls=utf8, which is used with the stock read-only NTFS driver, just to avoid surprising people who try to upgrade like I did (by simply changing "ntfs" to "ntfs-3g". But maybe other users will be wise enough to read the entire man page. =)

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

ntfs-3g doesn't need either the nls or the locale mount option if the language specific locale environment is already correctly setup by the distribution before mounting the volumes (Ubuntu 7.10 already should do this way). More info is at http://ntfs-3g.org/support.html#locale

In short, if the distribution is correctly setup and configured then there isn't need for extra, language specific mount option.

Btw, the ntfs-3g filesystem type is ntfs-3g, not ntfs-fuse which is used by the ntfsmount driver (i.e. you're not using ntfs-3g).

Revision history for this message
Victor Sergienko (singalen) wrote :

adding either "utf8" option or locale="ru_RU.UTF8" didn't help for me; still it's mounted with no national language filenames.

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

The locale="ru_RU.UTF8" option is not enough. Your environment must be also UTF8 ready and the specified locale must exist on your system. See: http://ntfs-3g.org/support.html#locale

However, if everything were correctly setup then you wouldn't need the 'locale' option at all. So, the conclusion is that, your system is not setup correctly for your national environment.

Revision history for this message
Colin Watson (cjwatson) wrote :

Those with problems: do you have an /etc/default/locale file? What's in it?

Revision history for this message
Niko Cavallini (niko-cava) wrote : Re: [Bug 132357] Re: files with unusual character sets are sometimes completely invisible to the driver

On 8/17/07, Szabolcs Szakacsits <email address hidden> wrote:
>
> Btw, the ntfs-3g filesystem type is ntfs-3g, not ntfs-fuse which is used
> by the ntfsmount driver (i.e. you're not using ntfs-3g).

As stated before the original problem of this bug report seems no to be
related to ntfs-3g.

I any case the problem I have is related to this, the auto mount of an ntfs
partition in gutsy lacs national characters like ñ or ó, as stated before
file names with this characters become invisible. Acording to

Szabolcs Szakacsits <email address hidden> wrote:
ntfs-3g doesn't need either the nls or the locale mount option if the
language specific locale environment is already correctly setup by the
distribution before mounting the volumes (Ubuntu 7.10 already should do
this way). More info is at http://ntfs-3g.org/support.html#locale

>
> In short, if the distribution is correctly setup and configured then
> there isn't need for extra, language specific mount option.

there sould be no need for the locale= option but on my system it fixes the
lac of this characters. Also without the locale option the auto mount (boot
mount) of my partition lacs the characters but a later remount has the
adequate regional character support.

So IMHO it seems gutsy is mounting the partition before having a language
environment completely set up, I lac the knowledge to prove this but if
someone has a pointer I can try an look on it.

$ cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
# /dev/sda2
UUID=4004015C040155F6 /mnt/win ntfs defaults,umask=007,gid=46
0 1

$ cat /etc/default/locale
LANG="es_CR.UTF-8"
LANGUAGE="es_CR:es"

--
Saludos
        Niko

Revision history for this message
Florent Mertens (givre) wrote :

Colin, it seams that the env variable LANG is not exported correctly
in /etc/init.d/mountall.sh and so locale is not set correctly.

Changing :

if [ -r /etc/default/locale ]; then
        . /etc/default/locale
fi

to :

if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG
fi

fix this nasty bug.
Could you take a look at it ?

Thanks.

Changed in ntfs-3g:
status: New → Confirmed
Revision history for this message
Thomas Trummer (truetom) wrote :

Florent: Fixed the problem for me, thanks!

Linux tom-laptop 2.6.22-12-generic #1 SMP Sun Sep 23 18:11:30 GMT 2007 i686 GNU/Linux

Revision history for this message
Niko Cavallini (niko-cava) wrote : Re: [Bug 132357] Re: files with unusual character sets are sometimes completely invisible to the driver : locale not set correctly

On 9/26/07, Florent Mertens <email address hidden> wrote:
>
> Changing :
>
> if [ -r /etc/default/locale ]; then
> . /etc/default/locale
> fi
>
> to :
>
> if [ -r /etc/default/locale ]; then
> . /etc/default/locale
> export LANG
> fi
>

Hi, I can confirm this solves the issue at hand.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

In the last dist-upgrade the file /etc/init.d/mountall.sh seems to be as Florent says it needs to be, but unfortunately for me it still doesn`t working...

Revision history for this message
Adam Niedling (krychek) wrote :

It's working for me! Ubuntu correctly mounts NTFS partition that has Hungarian character set.

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

Anybody knows which package /etc/init.d/mountall.sh belongs? The problem can't be fixed in the ntfs-3g package, only in the one which /etc/init.d/mountall.sh has and its maintainer is apparently not aware of the problem, so he can't fix it.

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

@Vangelis Tasoulas: can you see the files if you do

umount -a
mount -a

If not then your problem is different, e.g. your locale is not configured, or doesn't exist, or not the correct one.

==
NTFS-3G Lead Developer: http://ntfs-3g.org

Revision history for this message
Thomas Trummer (truetom) wrote :

Szabolcs: Package is 'initscripts'

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

@Szabolcs Szakacsits: Yes I can see the files by doing what you mentioned....

I Had already realized that by doing the umount/mount I was able to see all of my files but I was waiting for a fix. But unfortunately the fix that for others is working, it is not working for me :(

My "unusual characters" are Greek...

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

What's you /etc/fstab? Probably your locale is on a separate partition which weren't mounted yet when ntfs is mounted. Moving the ntfs-3g entry to the end of /etc/fstab should help.

Revision history for this message
Florent Mertens (givre) wrote :

This was fixed friday by Colin Watson, but he didn't change the status of the bug :

 sysvinit (2.86.ds1-14.1ubuntu29) gutsy; urgency=low
 .
   * Export LANG in /etc/init.d/mountall.sh (thanks, Florent Mertens;
     LP: #132357).

Vangelis, make sure that your /etc/mountall.sh and your /etc/default/locale are correct, and as Szaka said,
check that your your NTFS partition is at the end of your /etc/fstab line.
If it still don't work, you can set your locale in the options like that :
/dev/sda2 /media/Windows ntfs-3g defaults,locale=fr_FR.UTF-8 0 0

Changed in sysvinit:
status: Confirmed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

The LP: bit in my changelog should have changed the status of the bug automatically without the need for me to do it by hand. I don't know why it didn't happen in this case; perhaps because the bug was still filed for ntfs-3g.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

here is my /etc/fstab

$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda4
UUID=89cf72cd-72ab-4342-a777-ad6693d4f184 / reiserfs notail 0 1
# /dev/hda5
UUID=F0D0F7A1D0F76BEA /media/Storage ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/hda1
UUID=A244FF4244FF182D /media/Windows ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/hda3
UUID=3558d158-fe9a-44f9-a66a-f43f8a34f7af none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0

My /etc/init.d/mountall.sh has the "export LANG"
My /etc/default/locale has the LANG variable set.
(Actually I think if it didn`t had this variable I could not see my files even after umount/mount).

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

@Vangelis Tasoulas: you're not using the NTFS-3G driver but the old kernel one. Change all occurances of ntfs to ntfs-3g in your fstab file and everything should be fine if you use the latest gutsy install with the fix Colin just mentioned.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

This system came from a feisty dist-upgrade...
After the dist-upgrade to gutsy this is the /etc/fstab I had (and still have).
After the boot I have write access on my ntfs file systems with the fstab I already pasted above!
That makes me thinking that even if it is says ntfs for the module on the fstab, it uses ntfs-3g! The only problem is that I can`t see and also can`t create files with Greek characters until I do a "sudo umount /media/Storage && sudo mount /media/Storage".
After the umount/mount everything is alright!

It is a bit weird behavior... Don`t you think?
I am going to try to change to ntfs-3g module on my fstab and I will post again for more info.

Thanks for the replies!

Revision history for this message
Florent Mertens (givre) wrote :

https://wiki.ubuntu.com/WriteSupportForNTFS

We link /sbin/mount.ntfs to /bin/ntfs-3g, so you can get write support for your NTFS device on dist-upgrade.

Did you try the option locale= in your /etc/fstab, as i proposed before. This should not be needed, but since
you semas to be the only one to still have this problem.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

Changed the module to ntfs-3g but still no luck...
Take a look on the following command lines and their output...

cyber@Aurora:/media/Storage$ cat /etc/default/locale
LANG="en_US.UTF-8"
cyber@Aurora:/media/Storage$ cat /etc/init.d/mountall.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: mountall
# Required-Start: checkfs
# Required-Stop:
# Should-Start: lvm
# Should-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Mount all filesystems.
# Description:
### END INIT INFO

PATH=/sbin:/bin
. /lib/init/vars.sh

. /lib/lsb/init-functions
. /lib/init/mount-functions.sh

if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG
fi
.....
.....

cyber@Aurora:/media/Storage$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda4
UUID=89cf72cd-72ab-4342-a777-ad6693d4f184 / reiserfs notail 0 1
# /dev/hda3
UUID=3558d158-fe9a-44f9-a66a-f43f8a34f7af none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
# /dev/hda5
UUID=F0D0F7A1D0F76BEA /media/Storage ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/hda1
UUID=A244FF4244FF182D /media/Windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
cyber@Aurora:/media/Storage$ mkdir Ελληνικά
mkdir: cannot create directory `Ελληνικά': Invalid or incomplete multibyte or wide character
cyber@Aurora:/media/Storage$ cd ..
cyber@Aurora:/media$ sudo umount /media/Storage/
cyber@Aurora:/media$ sudo mount /media/Storage/
cyber@Aurora:/media$ cd Storage/
cyber@Aurora:/media/Storage$ mkdir Ελληνικά
cyber@Aurora:/media/Storage$ cd Ελληνικά/
cyber@Aurora:/media/Storage/Ελληνικά$ ls
cyber@Aurora:/media/Storage/Ελληνικά$

From the above you can see the exact behaviour ...
Any thoughts? Should I reopen the bug??

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

If you're Greek then the LANG="en_US.UTF-8" setting is not ok. You should use LANG=el_GR.UTF-8

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

Szabolcs Szakacsits wrote:
>If you're Greek then the LANG="en_US.UTF-8" setting is not ok. You should use LANG=el_GR.UTF-8

If I set my locale to el_GR.UTF-8 I have much more problems..
First of all I can`t write accented characters on every kde based application (probably qt apps)
On my firefox that I am using right now I don`t have that problem..
άΆέΈ.. Ελληνικά!
Second problem: now I can`t even write the command "mkdir Ελλήνικα" as I did before because when I type the first Greek character on the console I get the following weird character...
"cyber@Aurora:/media/Storage$ :�λληνικα"
"cyber@Aurora:/media/Stomkdir"
"mkdir: missing operand"
Also I can`t enter accented chars as on the kde applications...
And the third one (and the main as we are talking for a specific bug) is that the ntfs-3g problem still hasn`t fixed but it is worse...
Now I can`t write Greek characters at all, even with the umount/mount that with the "en_US.UTF-8" locale I could write Greek characters before.

cyber@Aurora:/media/Storage$ cat /etc/default/locale
LANG="el_GR.UTF-8"

So I am switching back to en_US locale....

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

What's the output of 'locale -a'?

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

I switched back on en_US....

This is my locale -a output now:

cyber@Aurora:~$ locale -a
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX

I am changing my locale to el_GR, rebooting and I will also post in a few minutes my locale -a output for el_GR locate too.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

this is the output now with el_GR.UTF-8...

cyber@Aurora:~$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8

It has some errors as I can see.....

In my previous post that I said:
>And the third one (and the main as we are talking for a specific bug) is that the ntfs-3g problem still hasn`t fixed but it is worse...
>Now I can`t write Greek characters at all, even with the umount/mount that with the "en_US.UTF-8" locale I could write Greek characters before.

I mean that I can`t create Greek named files or folders on a ntfs partition even after umount/mount as I can when I am using en_US.
Not that I can`t write Greek characters in General... I can write Greek chars but with many problems as I described.

Revision history for this message
Colin Watson (cjwatson) wrote :

You need to install the language-pack-el package (and you might want language-support-el too).

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

You don't have Greek locale: http://ntfs-3g.org/support.html#locale
I'm surprised you can use them even after umount/mount.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

Thanks Colin for the tip!
language-pack-el is what I needed to be able to set my /etc/default/locale on el_GR.UTF-8 and do not have any problems!! (At least I have not found a problem yet..)
Now I can write Greek chars everywhere as before!

language-support-el is something that I don`t want...
As I saw it is converting the apt and a few other programs (like firefox/thunderbird) to Greek!
I just want to be able to write Greek but I want my whole system in English ;)

Until Breezy that I am using Kubuntu as my main operating system I had never set my locale to el_GR.UTF-8 but I never had problems so I didn`t had the impulse to search for a solution to problem that I never had.

Anyway I have done a big step forward!!! I have for my first time in my life the el_GR.UTF-8 in my system (As you live you are learning :)

To the nfts problem now...
The ntfs-3g problem still not fixed yet...

cyber@Aurora:/media/Storage$ cat /etc/default/locale
LANG="el_GR.UTF-8"
cyber@Aurora:/media/Storage$ locale -a
C
el_CY.utf8
el_GR.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX
cyber@Aurora:/media/Storage$ mkdir Ελληνικά
mkdir: cannot create directory `Ελληνικά': Invalid or incomplete multibyte or wide character
cyber@Aurora:/media/Storage$ cd ..
cyber@Aurora:/media$ sudo umount /media/Storage/
[sudo] password for cyber:
cyber@Aurora:/media$ sudo mount /media/Storage/
cyber@Aurora:/media$ cd Storage/
cyber@Aurora:/media/Storage$ mkdir Ελληνικά
cyber@Aurora:/media/Storage$ cd Ελληνικά/
cyber@Aurora:/media/Storage/Ελληνικά$
cyber@Aurora:/media/Storage/Ελληνικά$ ls
cyber@Aurora:/media/Storage/Ελληνικά$ cd ..
cyber@Aurora:/media/Storage$ rm -r Ελληνικά/
cyber@Aurora:/media/Storage$

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

The only solution to that problem for me is to pass the locale parameter to the fstab file...

With the following fstab line read/write for Greek characters on the NTFS Partitions works fine..

UUID=F0D0F7A1D0F76BEA /media/Storage ntfs defaults,locale=el_GR.UTF-8,nls=utf8,umask=007,gid=46 0 1

Why don`t you set gutsy to set the locale parameter to the fstab automatically?
I can understand that I am the only one left with that problem but I might not be the only one in the whole world but only in this thread :)
By making gutsy entering by default the locale parameter to the fstab, you are minimizing the chances of someone else having my problem too..

I think that even with locale=en_US.UTF-8 would work if I was setting it on the fstab.
The behaviour even with the el_GR or en_US is exactly the same for me...

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

And yes, I was right to the last one...
Even with the "wrong" locale I don`t have that problem if I set it on my fstab....
I can read/write Greek Characters...

cyber@Aurora:/media/Storage$ cat /etc/default/locale
LANG="en_US.UTF-8"
cyber@Aurora:/media/Storage$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda4
UUID=89cf72cd-72ab-4342-a777-ad6693d4f184 / reiserfs notail 0 1
# /dev/hda3
UUID=3558d158-fe9a-44f9-a66a-f43f8a34f7af none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
# /dev/hda5
UUID=F0D0F7A1D0F76BEA /media/Storage ntfs defaults,locale=en_US.UTF-8,nls=utf8,umask=007,gid=46 0 1
# /dev/hda1
UUID=A244FF4244FF182D /media/Windows ntfs defaults,nls=utf8,umask=007,gid=46 0 1
cyber@Aurora:/media/Storage$ mkdir Ελληνικά
cyber@Aurora:/media/Storage$ rm -rf Ελληνικά/
cyber@Aurora:/media/Storage$

Revision history for this message
Colin Watson (cjwatson) wrote :

I don't want to change /etc/fstab because there are already too many files that need to be changed if you want to change the system default locale (as various bits of the installer, code I help maintain, need to do). I'm trying very hard to avoid creating more of them.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

You know better than me :)
But I think especially for a new windows user coming to linux this will be a big trouble..
Anyway I will install gutsy on two more PC`s (on two friends. Yes I am making linux promotion to my friends :) probably one of these days, and I will report back my progress with ntfs-3g!

If I can send any logs that can help resolve why I am having this behavior please advice!
Thanks for the help.

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

Please try el_GR.utf8 too. Technically you don't have el_GR.UTF-8 (local -a output). This shouldn't matter but maybe this legacy support was broken by a developer accidentally.

Revision history for this message
Colin Watson (cjwatson) wrote :

We use *.UTF-8 locales throughout Ubuntu and do not regard them as "legacy". In fact that naming scheme is the only one listed in /usr/share/i18n/SUPPORTED, which is the canonical list of locale names supported by our system. I view it as an unfortunate accident that 'locale -a' canonicalises differently.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

Szabolcs Szakacsits wrote:
>Please try el_GR.utf8 too. Technically you don't have el_GR.UTF-8 (local -a output). This shouldn't matter but maybe this legacy support was broken by a developer accidentally.

I have tried it with el_GR.UTF-8 too and I have exactly the same behavior as with en_US.UTF-8...
The only solution for me is to set the locale (which one is not a problem) in the fstab file.

the locale -a out should print only my locale?
e.g. only en_US.UTF-8 or el_GR.UTF-8?

I also realized the by installing language-pack-el it adds in the "locale -a" output the el_GR.UTF-8 that didn`t existed, but if I set it on /etc/default/locale too (the el_GR.UTF-8) it also changes my apt and a few other things to the Greek language.
I don`t want that...

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

Vangelis: Could you try el_GR.utf8 (not el_GR.UTF-8 and not en_US.UTF-8)? Probably it won't make a difference but if 'locale' canonicalises differently then perhaps something else too.

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

Vangelis: Does it help if you put into /etc/default/locale
LC_ALL="el_GR.UTF-8"
and you export it in /etc/init.d/mountall.sh where the LANG variable exported too?
export LC_ALL

Though something could still set it (back) to "C" before NTFS mount.

setlocale(3) ignores LANG if LC_ALL is set.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

>Could you try el_GR.utf8 (not el_GR.UTF-8 and not en_US.UTF-8)? Probably it won't make a difference but if 'locale' canonicalises differently then perhaps something else too.

It has the same behaviour as when I had set the locale to el_GR.UTF-8, BEFORE I install language-pack-el as Colin suggested.
The weird characters and the non accented characters to QT Apps as I wrote on a post above.

> Does it help if you put into /etc/default/locale
> LC_ALL="el_GR.UTF-8"
> and you export it in /etc/init.d/mountall.sh where the LANG variable exported too?
> export LC_ALL

No, the same common for me problem that it is fixed when you umount/mount the ntfs disc.

> Though something could still set it (back) to "C" before NTFS mount.

Could you please explain me the output of "locale -a"?
I am trying to troubleshoot a thing that I cannot totally understand :(
What I have understood until now, is that to have properly read/write support with the ntfs-3g for other languages except English, you have to set the locale before the partition will be mounted.
The problem existed for everyone because the locale was set too late so by doing a umount/mount after the locale was set the problem was fixing.
After the "export LANG" line added to the /etc/init.d/mountall.sh file, the problem has been fixed for everyone except me....

cyber@Aurora:/media/Storage$ locale -a
C
el_CY.utf8
el_GR.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX

What is the "C" that you also mentioned in your previous post?
What is the"POSIX" line?
And what are the other lines? I think that the other lines are the available locales on my system. Right?
But how I was able to write Greek characters before I install the language-pack-el?
Before I install that package to my system, the output of the "locale -a" didn`t include the el_GR.UTF-8 and el_CY.UTF-8 lines.
That leads me to understand, that this packege installed the el_GR.UTF-8 locale to my system.

Thanks.

Revision history for this message
miraks (s-mankowski) wrote :

I have got the same kind of problem.
I am on Kubuntu Gutsy.

When my external disk is AUTOMATICALY (with the panel) mounted, I am not able to see files with accents (éèà, …).
Mtab contains:
/dev/sda1 /media/TVIX fuseblk rw,nosuid,nodev,noatime,allow_other,blksize=512 0 0

When my external disk is mounted by "pmount /dev/sda1" or "pmount-hal /dev/sda1", I am able to see them.
Mtab contains:
/dev/sda1 /media/TVIX fuseblk rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=512 0 0

I don't understand why ? For me, it's not due to utf8 of something like this !

For more information (excuse me for the french): http://forum.kubuntu-fr.org/viewtopic.php?id=151442

Revision history for this message
palbarra (pedro-albarran) wrote :

I have the same problems. My locales are properly set in my box and /etc/init.d/mountall.sh is fine, and fstab explicitly include locale option.

However, I cannot see files with accents, etc. in my external hard disk with ntfs partition; but if I manually mount the partition (with locale option) I can see them... very intriguing for me.

All this happened after upgrading from Kubuntu Feisty to Gutsy.

Revision history for this message
Vangelis Tasoulas (cyberang3l) wrote :

So It`s not only me with the problem.
I am at least happy that I am not alone :)

I think that the status of this bug should be changed to "In Progress" again? if it is in progress...
Anyway it is still a not fixed bug for a few people.

I think that the only way to be fixed this for all of us, is to set gutsy to set the locale parameter to the fstab automatically as I mentioned before.
I remember Colin`s reply about trying to avoid creating more things that needs to be changed when the default locale is changing, but I have not found another solution so far.

Revision history for this message
Sebastien Bacher (seb128) wrote :

doesn't look like a nautilus bug if they are not listed on the command line neither

Changed in gnome-panel:
status: New → Invalid
Revision history for this message
Florent Mertens (givre) wrote :

miraks, palbarra , what the result of :
$cat /etc/default/locale

Make sure that you have the locale installed for your language
(in System>Administration>Language Support) and set to default.

Vangelis Tasoulas, does it works if you set greek as default in
System>Administration>Language Support ?

Revision history for this message
palbarra (pedro-albarran) wrote : Re: [Bug 132357] Re: files with unusual character sets are sometimescompletely invisible to the driver : locale not set correctly

Florent,

output for
$ cat /etc/default/locale
LANG="es_ES.UTF-8"
LANGUAGE="es_ES:es"

in my case I using Kubuntu, and GUI management of locale is a bit
different. But I was sure about my locales setting because I installed
kubuntu-desktop after a server install with Spanish locales and it set
by default US English locales in KDE.

This also happened with previous versions, so I knew that I must
change locales and in Feisty it worked.

Best regards,
Pedro.

On 10/15/07, Florent Mertens <email address hidden> wrote:
> miraks, palbarra , what the result of :
> $cat /etc/default/locale
>
> Make sure that you have the locale installed for your language
> (in System>Administration>Language Support) and set to default.
>
> Vangelis Tasoulas, does it works if you set greek as default in
> System>Administration>Language Support ?
>
> --
> files with unusual character sets are sometimes completely invisible to the driver : locale not set correctly
> https://bugs.launchpad.net/bugs/132357
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
------------------------------------------------
Pedro Albarran
Departamento de Economia
Universidad Carlos III de Madrid
C./ Madrid, 126
28903 Getafe (Madrid)
SPAIN

Phone: +34 91 624 5738
Fax: +34 91 624 9875
Email: <email address hidden>
------------------------------------------------

Revision history for this message
Jose Bernardo (bernardo-bandos) wrote :

I also have the same problem, and on hardy I had to build a new ntfs-3g (1.2412) because I need to set my locale (pt_PT.UTF-8) in fstab for all my ntfs partitions, and the version in hardy won't mount as user (check bug #205081).

The output of "locale -a" is:
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX
pt_BR.utf8
pt_PT.utf8

And "apt-cache policy language-pack-pt":
language-pack-pt:
  Instalado: 1:8.04+20080415
  Candidato: 1:8.04+20080415
  Tabela de Versão:
 *** 1:8.04+20080415 0
        500 http://archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

If I don't have a fstab entry, the partitions aren't mounted with the correct locale, and there go the accents out of the window...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.