Page 1 of 2
Russian names of files on USB-flash [OK]
Posted: 13. Jul 2010, 07:53
by Andyun
Russian names of files and folders on USB-Flash displays as question marks.
Code: Select all
locale
LANG=ru_RU.utf8
LC_CTYPE="ru_RU.utf8"
LC_NUMERIC="ru_RU.utf8"
LC_TIME="ru_RU.utf8"
LC_COLLATE=C
LC_MONETARY="ru_RU.utf8"
LC_MESSAGES="ru_RU.utf8"
LC_PAPER="ru_RU.utf8"
LC_NAME="ru_RU.utf8"
LC_ADDRESS="ru_RU.utf8"
LC_TELEPHONE="ru_RU.utf8"
LC_MEASUREMENT="ru_RU.utf8"
LC_IDENTIFICATION="ru_RU.utf8"
LC_ALL=
If unmount and remount in PCMan FM then OK.
How fix it? Thank you!
In 13.0.2 was normal (it seems), but 13.1 - problem.
Re: Russian names of files and folders on USB-flash
Posted: 14. Jul 2010, 09:02
by thenktor
What file system is on that USB stick?
Re: Russian names of files and folders on USB-flash
Posted: 14. Jul 2010, 13:50
by Andyun
thenktor wrote:What file system is on that USB stick?
FAT. This USB flash drive from the other linux and windows computers.
If mount in Thunar and write something and after mount in PCManFM then file name displays as: СвиÑидов мÑзÑка
If mount in PCManFM and write something and after mount in Thunar then file name displays as: ??????
Re: Russian names of files and folders on USB-flash
Posted: 14. Jul 2010, 21:35
by thenktor
So Thunar and pcmanfm use different mount options. Please first mount the stick with Thunar and post the output of the command mount. After that do the same for pcmanfm, so that we can see which one uses the right options.
Re: Russian names of files and folders on USB-flash
Posted: 15. Jul 2010, 00:32
by Andyun
thenktor wrote:... post the output of the command mount.
How do it?
Mount in Thunar: Info from /etc/mtab:
/dev/sdb /media/S2 vfat rw,nosuid,nodev,uhelper=hal,uid=1000,shortname=winnt 0 0
Mount in PCManFM: Info from /etc/mtab:
/dev/sdb /media/S2 vfat rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077 0 0
Re: Russian names of files and folders on USB-flash
Posted: 15. Jul 2010, 05:56
by gapan
The mount options seem to be wrong in Thunar. It should normally mount with utf8, but it doesnt. Open file /etc/xfce/xdg/xfce4/mount.rc and in the
[vfat] section add
if it's not there.
Re: Russian names of files and folders on USB-flash
Posted: 15. Jul 2010, 07:17
by thenktor
Is this still the old Thunar bug?
Re: Russian names of files and folders on USB-flash
Posted: 15. Jul 2010, 11:12
by Andyun
gapan wrote:The mount options seem to be wrong in Thunar. It should normally mount with utf8, but it doesnt. Open file /etc/xfce/xdg/xfce4/mount.rc and in the
[vfat] section add
if it's not there.
This helped, thank you!
You make this correction in the
xfce package? If not, then how do I rebuild it?
In
xfce-4.6.1-i486-2gv.txz for 13.0.2 string "utf8=true" is present.
Re: Russian names of files and folders on USB-flash
Posted: 15. Jul 2010, 14:49
by gapan
No, because it's already fixed in the package. Now I see the real problem, which I missed earlier. You have LC_COLLATE=C, which disables utf8 for mounting. If you had set it to ru_RU.utf8 you would have had no problems. So, it's not a bug really, it was only caused by your custom locale settings.
Re: Russian names of files and folders on USB-flash
Posted: 15. Jul 2010, 16:26
by thenktor
I don't think LC_COLLATE should change the locale settings of mounted drives. It only should change the sort order, shouldn't it? If so it looks like an upstream bug for me, but I could be wrong.