FS#6197 - automount: default encoding should be utf8
Attached to Project:
Arch Linux
Opened by 甘露(Lu Gan) (ganlu) - Wednesday, 10 January 2007, 11:51 GMT
Opened by 甘露(Lu Gan) (ganlu) - Wednesday, 10 January 2007, 11:51 GMT
|
Details
With new dbus and hal package, all my files with chinese
(gbk encoded) name in my usb harddisk (fat32 format) become
question marks(?) . In driver's peoperties windows, it shows
the harddisk was mounted with wrong codepage (cp437) and
iocharset (iso8859-1). Don't know how to change this, or is
it related to gnome-mount, hal (policy?). Thank you in
advance to check into the bug.
BTW, Ubuntu 6.10 works well with the same usb harddisk. |
This task depends upon
Closed by Roman Kyrylych (Romashka)
Saturday, 13 January 2007, 17:18 GMT
Reason for closing: Not a bug
Saturday, 13 January 2007, 17:18 GMT
Reason for closing: Not a bug
#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
Why set it to 437 and iso8859-1 since default locale of system has been utf8 for a while.
Default locale in rc.conf is not related to default FAT codepage. FAT doesn't store files in UTF-8 anyway.
It's up to you to setup autofs correctly (as described in http://wiki.archlinux.org/index.php/AutoFS_HowTo or wait until http://bugs.archlinux.org/task/4957 will be implemented).
For example I have this line in my /etc/autofs/auto.media:
usbflash -fstype=vfat,async,quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111,codepage=866,iocharset=koi8-u :/dev/usbflash
(/dev/usbflash is a symlink that is created by one of my udev rule).
Note codepage and iocharset options. You need codepage=gbk,iocharset=utf-8.
You may change gnome mount settings in gconf (the last node in the tree, don't remember it's name as I'm at work on windoze now). Just add codepage and iocharset settings for vfat there.
Are you sure you _edited_ that parameter line that was already presented there, instead of adding _new_ line?
You need to edit /system/storage/default_options/vfat/mount_options and add required paramethers there.
Arch tries to use as much vanilla configs as possible, leaving setting config files to user.
And, for example, I don't use UTF-8. :-p
Anyway we cannot satisfy all users.