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
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by 甘露(Lu Gan) (ganlu) - Thursday, 11 January 2007, 08:21 GMT
The bug seems related to kernel config:
#
# 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.
Comment by Roman Kyrylych (Romashka) - Friday, 12 January 2007, 09:13 GMT
Kernel config is OK.
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.
Comment by Roman Kyrylych (Romashka) - Friday, 12 January 2007, 09:26 GMT
Oh, sorry, I wrote about automount because I confused your bugreport with another one.
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.
Comment by 甘露(Lu Gan) (ganlu) - Friday, 12 January 2007, 10:18 GMT
Adding "codepage=gbk" "iocharset=utf-8" along or together in gconf makes mount error.Or anything I was doing wrong.
Comment by Roman Kyrylych (Romashka) - Friday, 12 January 2007, 10:34 GMT
Hmm, you entered something wrong, I think. It clearly works here without errors.
Are you sure you _edited_ that parameter line that was already presented there, instead of adding _new_ line?
Comment by Roman Kyrylych (Romashka) - Friday, 12 January 2007, 18:51 GMT
OK, I've got to my Gnome machine.
You need to edit /system/storage/default_options/vfat/mount_options and add required paramethers there.
Comment by 甘露(Lu Gan) (ganlu) - Saturday, 13 January 2007, 16:51 GMT
adding only "iocharset=utf8" solve the problem, so the question is why not set this to the default, thanks very much.
Comment by Roman Kyrylych (Romashka) - Saturday, 13 January 2007, 17:17 GMT
Because this is user-specific setting in ~/.gconf
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.

Loading...