General TC > International Talk

(中文) How can I automatically load all partitions when tinycore starts?

<< < (23/26) > >>

liuzhaoyzz:

--- Quote from: Rich on January 19, 2022, 12:34:57 PM ---Hi polikuo

--- Quote from: polikuo on January 19, 2022, 11:12:21 AM --- ... You'll see question marks even after you load the locale support.
The filename is corrupted.
--- End quote ---
Seems there is actually a tool to deal with that:

--- Quote ---convmv - converts filenames from one encoding to another
--- End quote ---
Found here:
http://manpages.ubuntu.com/manpages/trusty/man1/convmv.1.html

A more detailed description from the Ubuntu repo:

--- Quote ---convmv can convert a single filename, a directory tree or all files
 on a filesystem to a different encoding. It only converts the
 encoding of filenames, not files contents. A special feature of
 convmv is that it also takes care of symlinks: the encoding of the
 symlink's target will be converted if the symlink itself is being
 converted.
 
 It is also possible to convert directories to UTF-8 which are already
 partially UTF-8 encoded.
--- End quote ---
Found here:
https://launchpad.net/ubuntu/trusty/+package/convmv

--- End quote ---

convmv或者iconv应该大家想要的结果,因为中文windows下面的文件编码都是GBK的,成千上万的文件和文件夹用iconv或者convmv逐一转换编码,工作量太大,不切实际,我想要的,仅仅是一个iocharset=utf8参数而已,而这项工作,我希望是由tinycore官方来完成,而不是用户自身,这只是个美好的愿景。
看了polikuo的介绍,似乎tinycore官方团队对于国际化语言的支持不怎么感兴趣。

liuzhaoyzz:
convmv不是我和大家想要的结果。

Rich:
Hi liuzhaoyzz
The reason I posted about  convmv  is not because we are not interested in international language support.
Tinycore is a small distribution with a small staff of volunteers. It provides the basics for a desktop. You provide
the work to customize it to your needs.

If you need something more user friendly:
1. Try a larger distribution (Debian, Ubuntu, Mint, Arch, etc.) that has a large staff to support plug and play style setups.
2. Try Windows which has a staff of many thousands and a big budget to support plug and play style setups.

It was because polikuo mentioned it's possible to corrupt file names if the locale is not properly set up when
copying files, not as a substitute for a proper setup.

It was mention as a possible tool for fixing mistakes.

polikuo:
Hi Rich.
I've run some tries, but it won't budge.

Create gibberish files

--- Code: ---$ mkdir /mnt/sda3/tce/gibberish
$ cd /mnt/sda3/tce/gibberish
--- End code ---

--- Code: ---$ /bin/mount /mnt/sda2
$ cp /mnt/sda2/*.txt .
--- End code ---

--- Code: ---$ echo *
??.txt
--- End code ---

Test run

--- Code: ---$ perl convmv -f iso-8859-1 -t utf8 --nosmart --notest *.txt
Ready
$ echo *
??.txt
--- End code ---

Rich:
Hi polikuo
Perl? I thought it was a binary.

You copied a utf8 encoded file name to a non utf8 file system. I would not expect the result to be 8859-1 encoded
name. It's probably still utf8 or partly utf8.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version