Page 1 of 1

[Solved] Error when renaming Chinese chars filename

Posted: 23 Aug 2016, 02:39
by xenos
Greetings to Porteus members,

I am not sure whats going wrong with my porteus installation inside hard disk,

Eg.
Created a folder in my desktop, default with New Folder,
Trying to rename it to some Chinese words, eg. 我的文件夹.

Error like below image.
Image

*update to fix image url

Re: Error when renaming Chinese chars filename

Posted: 23 Aug 2016, 10:52
by Bogomips
Welcome to Porteus.

The image is not showing: http://forum.porteus.org/viewtopic.php? ... 754#p44482

Re: Error when renaming Chinese chars filename

Posted: 23 Aug 2016, 13:57
by xenos
Sorry,
Image

Re: Error when renaming Chinese chars filename

Posted: 23 Aug 2016, 22:39
by xenos
Suspect this issue raised from locale setting after much google.

Found a solution for Debian,
https://people.debian.org/~schultmc/locales.html

1. Edit /etc/locale.gen as root. If /etc/locale.gen does not exist, create it. An example /etc/locale.gen is below.
2. Run /usr/sbin/locale-gen as root

But locale-gen doesn't exists in Porteus, not sure how to regenerate locale under Porteus.

Here the output from locale,

Code: Select all

almostroot@porteus:~# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=.utf8
LC_CTYPE=".utf8"
LC_NUMERIC=".utf8"
LC_TIME=".utf8"
LC_COLLATE=C
LC_MONETARY=".utf8"
LC_MESSAGES=".utf8"
LC_PAPER=".utf8"
LC_NAME=".utf8"
LC_ADDRESS=".utf8"
LC_TELEPHONE=".utf8"
LC_MEASUREMENT=".utf8"
LC_IDENTIFICATION=".utf8"
LC_ALL=

Re: Error when renaming Chinese chars filename

Posted: 23 Aug 2016, 23:43
by xenos
Not sure how I solved it, but somehow it works.

I removed the following:

Code: Select all

IPAfont-00303-noarch-1_Ahau.xzm       sazanami-fonts-ttf-20040629-noarch-1.xzm
freefont-20100919-noarch-1_Ahau.xzm   scim-1.4.14+extras-x86_64-1Ahau.xzm
glibc-i18n-x86_64-1ftm.xzm            ttf-indic-fonts-0.4.7.4-noarch-1.xzm
locales-en_US.utf8-x86_64-1prt.xzm    unifont-5.1.20080907-noarch-1_Ahau.xzm
odosung-font-1.4.2-noarch-1_Ahau.xzm  wqy-zenhei-font-ttf-0.8.38_1-noarch-1.xzm
Then I redo the Language setup through Porteus Settings Centre, now my system works as expected. :D

Code: Select all

almostroot@porteus:/# locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE=C
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=