San_Sanych пишет:
Gleb A Kuybark пишет:
Igor Goldenberg пишет:
Дмитрий Суслов пишет:
Взял у приятеля архив (.tar) с кучей файлов, пришел домой, захотел
распаковать - вместо имен файлов какие-то кракозябры. Оказалось, что у него
локаль KOI8-R, а у меня UTF-8. Как тут быть?
sudo apt-get install convmv

А потом перекодировать файлы с помощью convmv в UTF-8.
Аналогичный трабл был давно так файлы и не переименовал. С ключиками не своевал. какая там комбинация будет правильной?
  а что там сложного ключи практически такие-же как и у iconv:
convmv -r -f koi8-r -t utf-8 --notest /directory
-r включая подкаталоги
-f from
-t to
--notest начать работу (сначала стоит без нее - посмотреть на результат)

Ну примерно так и пробовал. Но ведь толком то не работает, или работает как должна да я не того от неё прошу. (атач)

supp...@ibex:~/Soft/Музыка/Плохие Белые - 24 рифмы 
(2004)$ convmv
convmv 1.12 - converts filenames from one encoding to another
Copyright (C) 2003-2008 Bjoern JACKE <bjo...@j3e.de>

This program comes with ABSOLUTELY NO WARRANTY; it may be copied or modified
under the terms of the GNU General Public License version 2 or 3 as published
by the Free Software Foundation.

 USAGE: convmv [options] FILE(S)
-f enc     encoding *from* which should be converted
-t enc     encoding *to* which should be converted
-r         recursively go through directories
-i         interactive mode (ask for each action)
--nfc      target files will be normalization form C for UTF-8 (Linux etc.)
--nfd      target files will be normalization form D for UTF-8 (OS X etc.)
--qfrom    be quiet about the "from" of a rename (if it screws up your terminal 
e.g.)
--qto      be quiet about the "to" of a rename (if it screws up your terminal 
e.g.)
--exec c   execute command instead of rename (use #1 and #2 and see man page)
--list     list all available encodings
--lowmem   keep memory footprint low (see man page)
--nosmart  ignore if files already seem to be UTF-8 and convert if posible
--notest   actually do rename the files
--replace  will replace files if they are equal
--unescape convert%20ugly%20escape%20sequences
--upper    turn to upper case
--lower    turn to lower case
--parsable write a parsable todo list (see man page)
--help     print this help
supp...@ibex:~/Soft/Музыка/Плохие Белые - 24 рифмы 
(2004)$ convmv -f koi8-r -t utf-8 *
Your Perl version has fleas #37757 #49830 
Starting a dry run without changes...
Skipping, already UTF-8: ./рМПИЙЕ вЕМЩЕ - 24 тЙЖНЩ (2002)
Skipping, already UTF-8: ./рМПИЙЕ вЕМЩЕ - ЖБВТЙЛБ 
ЪПНВЙ.mp3
Skipping, already UTF-8: ./рМПИЙЕ вЕМЩЕ - ФТХДОП.mp3
No changes to your files done. Use --notest to finally rename the files.
supp...@ibex:~/Soft/Музыка/Плохие Белые - 24 рифмы 
(2004)$ ls
рМПИЙЕ вЕМЩЕ - 24 тЙЖНЩ (2002)  рМПИЙЕ вЕМЩЕ - 
ЖБВТЙЛБ ЪПНВЙ.mp3  рМПИЙЕ вЕМЩЕ - ФТХДОП.mp3
supp...@ibex:~/Soft/Музыка/Плохие Белые - 24 рифмы 
(2004)$ convmv  -f koi8-r -t utf-8 --nosmart *
Your Perl version has fleas #37757 #49830 
Starting a dry run without changes...
mv "./рМПИЙЕ вЕМЩЕ - 24 тЙЖНЩ (2002)"   
"./я─п°п÷п≤п≥п∙ п╡п∙п°п╘п∙ - 24 
я┌п≥п√п²п╘ (2002)"
mv "./рМПИЙЕ вЕМЩЕ - ЖБВТЙЛБ ЪПНВЙ.mp3"  
"./я─п°п÷п≤п≥п∙ п╡п∙п°п╘п∙ - 
п√п▒п▓п╒п≥п⌡п▒ п╙п÷п²п▓п≥.mp3"
mv "./рМПИЙЕ вЕМЩЕ - ФТХДОП.mp3"       
"./я─п°п÷п≤п≥п∙ п╡п∙п°п╘п∙ - 
п╓п╒п╔п■п·п÷.mp3"
No changes to your files done. Use --notest to finally rename the files.
supp...@ibex:~/Soft/Музыка/Плохие Белые - 24 рифмы 
(2004)$ 

-- 
ubuntu-ru mailing list
ubuntu-ru@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru

Дати відповідь електронним листом