[Solved] Error when renaming Chinese chars filename

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
xenos
White ninja
White ninja
Posts: 24
Joined: 20 Aug 2016, 22:20
Distribution: Porteus
Location: Blackhole

[Solved] Error when renaming Chinese chars filename

Post#1 by xenos » 23 Aug 2016, 02:39

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
Last edited by xenos on 23 Aug 2016, 23:45, edited 2 times in total.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2560
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Error when renaming Chinese chars filename

Post#2 by Bogomips » 23 Aug 2016, 10:52

Welcome to Porteus.

The image is not showing: viewtopic.php?f=81&t=5754#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

xenos
White ninja
White ninja
Posts: 24
Joined: 20 Aug 2016, 22:20
Distribution: Porteus
Location: Blackhole

Re: Error when renaming Chinese chars filename

Post#3 by xenos » 23 Aug 2016, 13:57

Sorry,
Image

xenos
White ninja
White ninja
Posts: 24
Joined: 20 Aug 2016, 22:20
Distribution: Porteus
Location: Blackhole

Re: Error when renaming Chinese chars filename

Post#4 by xenos » 23 Aug 2016, 22:39

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=

xenos
White ninja
White ninja
Posts: 24
Joined: 20 Aug 2016, 22:20
Distribution: Porteus
Location: Blackhole

Re: Error when renaming Chinese chars filename

Post#5 by xenos » 23 Aug 2016, 23:43

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=

Post Reply