Unicode/UTF-8 file names Oxnas April 17, 2015 05:18PM |
Registered: 9 years ago Posts: 226 |
echo Ãnima.jpg > /tmp/Ãnima.txtThe listing of /tmp still shows "?nima.txt". I'm at my wits end. I've been through locales and I've tried to figure out what's different about the setup of the Pro and the Mobile, but they're pretty much identical except that the Pro runs an Oxnas kernel (v3.18.5).
Re: Unicode/UTF-8 file names Oxnas April 17, 2015 05:38PM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: Unicode/UTF-8 file names Oxnas April 17, 2015 05:59PM |
Registered: 9 years ago Posts: 226 |
Quote
robert1968@gmail.com
Hi Bodhi,
You planned to make new kernel for V3 Oxnas in the future with some kernel modules enabled.
-keyboard
May I ask to enable also
-nls_utf8
It is also not urgent at all... Im fine with the present 3.17. and my usb mouse button workaround.
Regards,
Robert
Re: Unicode/UTF-8 file names Oxnas April 17, 2015 06:34PM |
Registered: 9 years ago Posts: 226 |
Re: Unicode/UTF-8 file names Oxnas April 17, 2015 06:59PM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: Unicode/UTF-8 file names Oxnas April 17, 2015 08:41PM |
Registered: 9 years ago Posts: 226 |
Re: Unicode/UTF-8 file names Oxnas April 17, 2015 09:00PM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: Unicode/UTF-8 file names Oxnas April 17, 2015 09:29PM |
Registered: 9 years ago Posts: 226 |
Re: convmv April 18, 2015 05:43AM |
Registered: 9 years ago Posts: 63 |
echo Ãnima.jpg > > /tmp/Ãnima.txt
Re: convmv April 18, 2015 05:38PM |
Registered: 9 years ago Posts: 226 |
3/12/2010 23:00 19,607 Ænima.jpg
-rwxrwxrwx 1 root root 19607 Mar 12 2010 Ãnima.jpg
convmv -t utf8 *nima.jpg Your Perl version has fleas #37757 #49830 Starting a dry run without changes... Skipping, already UTF-8: ./Ãnima.jpg No changes to your files done. Use --notest to finally rename the files.
convmv -t utf8 *nima.jpg Your Perl version has fleas #37757 #49830 Starting a dry run without changes... mv "./Ænima.jpg" "./�nima.jpg" No changes to your files done. Use --notest to finally rename the files.
echo Ãnima.jpg > Ãnima.txt -bash: Ãnima.txt: Invalid or incomplete multibyte or wide character
Re: convmv April 18, 2015 10:13PM |
Admin Registered: 13 years ago Posts: 18,495 |
#apt-get update #apt-get install localesadd your locale to the end of /etc/locale.gen (uncomment your locale on the list):
en_US.UTF-8 UTF-8then generate it:
#locale-gencreate file .utf-8 file (the only line in there):
#cat ~/.utf8 export LANG=en_US.UTF-8install unicode fonts:
#apt-get install xfonts-efont-unicode #apt-get install xfonts-efont-unicode-ibadd .utf8 file reference to somewhere in your .profile:
#grep utf .profile . ~/.utf8
Re: Unicode/UTF-8 file names Oxnas April 18, 2015 10:56PM |
Registered: 9 years ago Posts: 226 |
Re: Unicode/UTF-8 file names Oxnas April 19, 2015 02:12AM |
Admin Registered: 13 years ago Posts: 18,495 |
# touch /tmp/Ãnima.txt
# rsync -a <Dockstar IP addr>:/tmp/Ãnima.txt .
# ls *.txt Ãnima.txt
Re: convmv April 19, 2015 03:01AM |
Registered: 9 years ago Posts: 63 |
3/12/2010 23:00 19,607 Ænima.jpg> On the Dockstar, the file listing appears as:
-rwxrwxrwx 1 root root 19607 Mar 12 2010 Ãnima.jpg> Notice that they're not identical, but I don't really care about that.
convmv -t utf8 *nima.jpg mv "./Ænima.jpg" "./�nima.jpg"
Re: Unicode/UTF-8 file names Oxnas April 20, 2015 01:05AM |
Registered: 9 years ago Posts: 226 |
convmv -t utf8 *nima.jpg mv "./Ænima.jpg" "./�nima.jpg"really makes a mess of things. I end up with a file named "./�nima.jpg". That's really not what I want.
Re: Unicode/UTF-8 file names Oxnas April 20, 2015 02:15AM |
Admin Registered: 13 years ago Posts: 18,495 |
> # touch /tmp/Ãnima.txt >>
> # rsync -a <Dockstar IP addr>:/tmp/Ãnima.txt . >
rsync -a 192.168.0.100:/tmp/Ãnima.txt
Re: Unicode/UTF-8 file names Oxnas April 20, 2015 01:05PM |
Registered: 9 years ago Posts: 63 |
convmv -t utf8 *nima.jpg mv "./Ænima.jpg" "./�nima.jpg"> really makes a mess of things. I end up with a
Re: Unicode/UTF-8 file names Oxnas April 20, 2015 01:40PM |
Registered: 9 years ago Posts: 226 |
> # touch /tmp/Ãnima.txt >>
> # rsync -a <Dockstar IP addr>:/tmp/Ãnima.txt . >>
> # ls *.txt > Ãnima.txt >
root@debian:/tmp# touch /tmp/Ãnima.txt root@debian:/tmp# ls ?nima.txtrsync will copy the file, but, no surprise, it still doesn't have a UTF-8 file name:
root@PogoPro:/tmp# rsync -a 192.168.0.115:/tmp/Ãnima.txt . root@192.168.0.115's password: root@PogoPro:/tmp# ls ?nima.txt
root@debian:/tmp# cp /media/500GB/Music/Album\ Art/*nima.jpg . root@debian:/tmp# ls Ãnima.jpg
root@PogoPro:/tmp# rsync -a 192.168.0.115:/tmp/Ãnima.jpg . root@192.168.0.115's password: rsync: link_stat "/tmp/\#303nima.jpg" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1536) [Receiver=3.0.9] root@PogoPro:/tmp# rsync -a 192.168.0.115:/tmp/*nima.jpg . root@192.168.0.115's password: root@PogoPro:/tmp# ls Ãnima.jpg root@PogoPro:/tmp# convmv -t utf-8 *nima.* Your Perl version has fleas #37757 #49830 Starting a dry run without changes... Skipping, already UTF-8: ./Ãnima.jpg No changes to your files done. Use --notest to finally rename the files.So there's still something weird going on. I could 'rsync' Ãnima.txt off of the Dockstar even though it displayed as ?nima.txt on the Dockstar, but I can't rsync "Ãnima.jpg" off of the Dockstar when it displays as Ãnima.jpg on the Dockstar.
Re: Unicode/UTF-8 file names Oxnas April 20, 2015 03:43PM |
Admin Registered: 13 years ago Posts: 18,495 |
Quote
Here's the first problem. touch on the Dockstar doesn't create a file with a UTF-8 file name:
root@debian:/tmp# touch /tmp/Ãnima.txt
root@debian:/tmp# ls
?nima.txt
/dev/sdb1 on / type ext3 (rw,noatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered)
Re: Unicode/UTF-8 file names Oxnas April 21, 2015 03:26AM |
Registered: 9 years ago Posts: 226 |
/dev/sda1 on / type ext2 (rw,noatime,errors=remount-ro)
Re: Unicode/UTF-8 file names Oxnas April 21, 2015 05:13AM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: Unicode/UTF-8 file names Oxnas April 21, 2015 05:52PM |
Registered: 9 years ago Posts: 226 |