Russian names of files on USB-flash [OK]

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Russian names of files on USB-flash [OK]

Post 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.
Last edited by Andyun on 9. Jun 2012, 15:57, edited 2 times in total.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Russian names of files and folders on USB-flash

Post by thenktor »

What file system is on that USB stick?
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: Russian names of files and folders on USB-flash

Post 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: ??????
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Russian names of files and folders on USB-flash

Post 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.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: Russian names of files and folders on USB-flash

Post 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
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Russian names of files and folders on USB-flash

Post 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

Code: Select all

utf8=true
if it's not there.
Image
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Russian names of files and folders on USB-flash

Post by thenktor »

Is this still the old Thunar bug?
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: Russian names of files and folders on USB-flash

Post 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

Code: Select all

utf8=true
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.
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Russian names of files and folders on USB-flash

Post 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.
Image
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Russian names of files and folders on USB-flash

Post 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.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Post Reply