From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Umlaut trouble in filenames
Date: Thu, 18 Jun 2009 12:31:09 +0200 [thread overview]
Message-ID: <200906181231.10043.wonko@wonkology.org> (raw)
Hi there!
I have a problem with umlauts in file names. They are working fine when I
create a file, but I have lots of files I moved from my former system that
show umlauts just as a question mark. I think I transferred them via NFS.
I have LANG=de_DE.utf8@euro set now, before it was unset. Those umlaut files
refuse to play in applications like amarok2. I can rename them with mv on
the command line, making use of tab completion, but it's annoying.
So, does anyone have a trick to automate this?
I tried using tr. Using od -t x1 I see that what has to be 'ü' comes out as
0374 (octal). But "echo ü | od -t o1" gives 0303 0274 which tells me that in
unicode the umlauts are coded as two bytes. But I think I cannot use tr to
replace one character by a sequence of two characters.
And with sed, I don't know how to express the source string, it does not
seem to be capable of octal notation.
The only way I see is to use tr to replace the original ü with some special
character like €, and then use sed to replace € by ü. And repeat this for
[äöüÄÖÜß] and all the accented characters which I do not know how to type
here with nodeadkeys option set in xorg.conf (I'd be interested in how to do
this, too).
Do you have simpler ideas?
Wonko
next reply other threads:[~2009-06-18 10:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-18 10:31 Alex Schuster [this message]
2009-06-18 11:20 ` [gentoo-user] Umlaut trouble in filenames Renat Golubchyk
2009-06-18 11:56 ` Alex Schuster
2009-06-18 14:19 ` Volker Armin Hemmann
2009-06-19 9:16 ` Alex Schuster
2009-06-19 14:42 ` Volker Armin Hemmann
2009-06-19 15:33 ` Dirk Heinrichs
2009-06-20 19:30 ` Mick
2009-07-24 12:30 ` Alex Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200906181231.10043.wonko@wonkology.org \
--to=wonko@wonkology.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox