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.
*update to fix image url
[Solved] Error when renaming Chinese chars filename
[Solved] Error when renaming Chinese chars filename
Last edited by xenos on 23 Aug 2016, 23:45, edited 2 times in total.
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: Error when renaming Chinese chars filename
Welcome to Porteus.
The image is not showing: http://forum.porteus.org/viewtopic.php? ... 754#p44482
The image is not showing: http://forum.porteus.org/viewtopic.php? ... 754#p44482
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Re: Error when renaming Chinese chars filename
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,
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
Not sure how I solved it, but somehow it works.
I removed the following:
Then I redo the Language setup through Porteus Settings Centre, now my system works as expected.
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
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=