This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Lack of characters
- From: "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 29 May 2003 18:37:25 +0200
- Subject: RE: Lack of characters
In addition to all that has been said.
e.g. 'tar' has it's own sense of valid output. The output of "tar -tf
archive.tar" where the archive contains files with filenames using "accented
characters" will look like:
fran\347ais/
portugu\352s/
This can't be used as input to any command I know of. There is a workaround
though.
$ echo -e 'fran\347ais/\n->\\<-backslash-test\nportugu\352s' | cl
français/
->\<-backslash-test
português
i.e.
$ tar -tf archive.tar | cl
will produce a human readable version of the archive contents.
Just slightly tested script appended below.
Please, *DO* comment - on its robustness in particular.
/Hannu E K Nevalainen, Mariefred, Sweden, 59~14'N, 17~12'E. >17~C avg/d now.
~ <=> degree
-- cl == cleanline --
#!/bin/bash
sed -e 's.\\.\\\\.g' |
(
read n
while [ ! -z "$n" ]
do
echo -e "$n"
read n
done
)
--
--END OF MESSAGE--
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/