如果local为zh_CN.UTF-8是没有任何中文问题的,如果local为其它例如为zh_CN/zh_CN.GBK则有两种办法,请依照情况选择一种方法处理
一:修改local为zh_CN.UTF-8
设置本地local环境:
$sudo dpkg-reconfigure locales
确保 zh_CN.UTF-8 被选择,同时也默认local为 zh_CN.UTF-8
二:修改/usr/share/hal/fdi/95userpolicy/storage-policy.fdi 文件为以下内容:
<?xml version="1.0" encoding="ISO-8859-1"?> <!– -*- SGML -*- –>
<deviceinfo version="0.2">
<device>
<match key="@block.storage_device:storage.removable" bool="true">
<merge key="volume.policy.mount_option.fmask=111" type="bool">true</merge>
<merge key="volume.policy.mount_option.dmask=0" type="bool">true</merge>
<merge key="volume.policy.mount_option.users" type="bool">true</merge>
<merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.policy.mount_option.fmask=111" type="bool">true</merge>
<merge key="volume.policy.mount_option.dmask=0" type="bool">true</merge>
<merge key="volume.policy.mount_option.users" type="bool">true</merge>
<merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
</device>
</deviceinfo>