|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Slackware The Official Release of Slackware Linux by Patrick Volkerding is an advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
cp does not like filenames with accents?
Hi: Code:
mkisofs -graft-points -rational-rock -joliet -joliet-long -full-iso9660-filenames -iso-level 2 -o /tmp/image.iso STORE1/=/almacen/strauss In /almacen/strauss there are filenames containing not only spaces but accented characters as well. I burned the image to DVD, with the result that all spaces and accents were conserved. This seems to contradict use of the option -full-iso9660-filenames as well as -iso-level 2, and has an undesirable side effect, as will be seen. I now copy the DVD to the hard disk, and if the current directory is in an NTFS partition, I get Code:
$ cp -r /mnt/cd0/STORE1 . cp: cannot create regular file 'some_file_name': Invalid or incomplete multibyte or wide character. for those filenames that contain an accent. Any way to avoid this cp error? Slackware 14.0 |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Is it imperative that the native charset remain in tact on the destination side? If that is the case: Can you set the locale of the process doing the copy to match what is on the disc? If you do this every app you run against your will have to be set to use that special locale. Otherwise use tar and iconv Code:
mkdir /newdir cd /mnt/cd0/STORE1 tar -c --file /dev/tty | ( cd /newdir ; | iconv [conversion options here] | tar xf ) [conversion options here] == you need to supply this. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Thank you, jim.
Quote:
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| remove accents and symbols with sed | mierdatuti | Shell Programming and Scripting | 7 | 01-06-2009 05:10 PM |
| Patterns in Filenames | msb65 | Shell Programming and Scripting | 6 | 08-01-2008 04:44 PM |
| prefixing filenames | ravi raj kumar | Shell Programming and Scripting | 2 | 11-20-2007 05:17 AM |
| spaces in filenames | Hitori | Shell Programming and Scripting | 4 | 07-04-2006 04:35 PM |
| Error When Print Accents | edvaldo | UNIX for Dummies Questions & Answers | 0 | 07-31-2004 05:10 PM |
|
|