automount using locale

Hello and well met! I have recently moved in from (Arch)Linux and found myself ready to fire up my first question:

"How do I mount volumes containing utf-8 encoded filenames via HAL?"

If the volume is mounted by Nautilus, non-ASCII filenames are displayed as question marks when ls is invoked in gnome-terminal. On the other hand when mounting is executed using a utf-8-based locale, e.g.
# mount_msdosfs -L en_US.UTF-8 /dev/da0s1 /mnt/
all filenames are displayed correctly.
Following a GNOME-specific guide, I checked on the mount options in gconf-editor:
% gconftool-2 -g /system/storage/default_options/vfat/mount_options
Code:
[longnames,-u=]
Next, I tried messing with ~/.login_conf adding locale-specific environmental variables:
Code:
me:\
	:charset=UTF-8:\
	:lang=en_US.UTF-8:
and created the necessary ~/.login_conf.db by invoking
% cap_mkdb .login_conf
but the locale was already set when choosing it from the login window.
% printenv | grep -i utf-8
Code:
GDM_LANG=en_US.UTF-8
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
Please note that the MM_CHARSET environmental is not set, contrary to the contents of .login_conf . So, how could I make HAL, nautilus or gnome-mount to respect locale settings and mount filesystems accordingly?
I'm missing something trivial, right?
 
I am having the same problem, too. Why was this question never answered? Very often USB-Sticks which have been used to store files on under Windows cannot be mounted in FreeBSD/Gnome anymore. I also believe that some entry with "utf-8" in gconf-editor could solve the problem, but how exactly?
 
Back
Top