* [gentoo-user] Umlaut trouble in filenames
@ 2009-06-18 10:31 Alex Schuster
2009-06-18 11:20 ` Renat Golubchyk
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Alex Schuster @ 2009-06-18 10:31 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Umlaut trouble in filenames
2009-06-18 10:31 [gentoo-user] Umlaut trouble in filenames Alex Schuster
@ 2009-06-18 11:20 ` Renat Golubchyk
2009-06-18 11:56 ` Alex Schuster
2009-06-18 14:19 ` Volker Armin Hemmann
2009-07-24 12:30 ` Alex Schuster
2 siblings, 1 reply; 9+ messages in thread
From: Renat Golubchyk @ 2009-06-18 11:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 812 bytes --]
Hi!
Am Thu, 18 Jun 2009 12:31:09 +0200
schrieb Alex Schuster <wonko@wonkology.org>:
> 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?
Use app-text/convmv.
Cheers,
Renat
--
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
(Einstein)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Umlaut trouble in filenames
2009-06-18 11:20 ` Renat Golubchyk
@ 2009-06-18 11:56 ` Alex Schuster
0 siblings, 0 replies; 9+ messages in thread
From: Alex Schuster @ 2009-06-18 11:56 UTC (permalink / raw
To: gentoo-user
Renat Golubchyk writes:
> schrieb Alex Schuster <wonko@wonkology.org>:
> > 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?
>
> Use app-text/convmv.
Wow, this is not exactly what I was looking for, it is much better. THANKS!
Wonko
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Umlaut trouble in filenames
2009-06-18 10:31 [gentoo-user] Umlaut trouble in filenames Alex Schuster
2009-06-18 11:20 ` Renat Golubchyk
@ 2009-06-18 14:19 ` Volker Armin Hemmann
2009-06-19 9:16 ` Alex Schuster
2009-07-24 12:30 ` Alex Schuster
2 siblings, 1 reply; 9+ messages in thread
From: Volker Armin Hemmann @ 2009-06-18 14:19 UTC (permalink / raw
To: gentoo-user
On Donnerstag 18 Juni 2009, Alex Schuster wrote:
> 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
btw
use either de_DE@euro or de_DE.UTF8
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Umlaut trouble in filenames
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-20 19:30 ` Mick
0 siblings, 2 replies; 9+ messages in thread
From: Alex Schuster @ 2009-06-19 9:16 UTC (permalink / raw
To: gentoo-user
Volker Armin Hemmann writes:
> On Donnerstag 18 Juni 2009, Alex Schuster wrote:
> > I have LANG=de_DE.utf8@euro set now, before it was unset. Those umlaut
>
> btw
> use either de_DE@euro or de_DE.UTF8
Oh, thanks.
I got this setting from the gentoo localization guide (the google cache
still shows that version), which now suggests using LANG="de_DE.UTF-8 UTF-8"
- any idea why the second UTF-8 would be necessary? It's described in the
german version only. I have it set to de_DE.UTF8 now.
Wonko
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Umlaut trouble in filenames
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
1 sibling, 1 reply; 9+ messages in thread
From: Volker Armin Hemmann @ 2009-06-19 14:42 UTC (permalink / raw
To: gentoo-user
On Freitag 19 Juni 2009, Alex Schuster wrote:
> Volker Armin Hemmann writes:
> > On Donnerstag 18 Juni 2009, Alex Schuster wrote:
> > > I have LANG=de_DE.utf8@euro set now, before it was unset. Those umlaut
> >
> > btw
> > use either de_DE@euro or de_DE.UTF8
>
> Oh, thanks.
>
> I got this setting from the gentoo localization guide (the google cache
> still shows that version), which now suggests using LANG="de_DE.UTF-8
> UTF-8" - any idea why the second UTF-8 would be necessary? It's described
> in the german version only. I have it set to de_DE.UTF8 now.
>
> Wonko
nope, I have:
de_DE.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
in locale.gen
and
LANG=de_DE@euro
LANGUAGE=de_DE@euro
LC_ALL=de_DE@euro
set.
which works well. utf gave me trouble in the past, so I shelfed that idea a
long time ago.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Umlaut trouble in filenames
2009-06-19 14:42 ` Volker Armin Hemmann
@ 2009-06-19 15:33 ` Dirk Heinrichs
0 siblings, 0 replies; 9+ messages in thread
From: Dirk Heinrichs @ 2009-06-19 15:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
Am Freitag 19 Juni 2009 16:42:23 schrieb Volker Armin Hemmann:
> which works well. utf gave me trouble in the past, so I shelfed that idea a
> long time ago.
OTOH, utf8 works perfectly well here, since years.
Bye...
Dirk
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Umlaut trouble in filenames
2009-06-19 9:16 ` Alex Schuster
2009-06-19 14:42 ` Volker Armin Hemmann
@ 2009-06-20 19:30 ` Mick
1 sibling, 0 replies; 9+ messages in thread
From: Mick @ 2009-06-20 19:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 854 bytes --]
On Friday 19 June 2009, Alex Schuster wrote:
> Volker Armin Hemmann writes:
> > On Donnerstag 18 Juni 2009, Alex Schuster wrote:
> > > I have LANG=de_DE.utf8@euro set now, before it was unset. Those umlaut
> >
> > btw
> > use either de_DE@euro or de_DE.UTF8
>
> Oh, thanks.
>
> I got this setting from the gentoo localization guide (the google cache
> still shows that version), which now suggests using LANG="de_DE.UTF-8
> UTF-8" - any idea why the second UTF-8 would be necessary? It's described
> in the german version only. I have it set to de_DE.UTF8 now.
I think that the localization guide refers to /etc/locale.gen which uses the
format:
<locale> <charmap>
So, de_DE.UTF-8 is the locale (as shown in /usr/share/i18n/locales/) and UTF-8
is the character map (as shown in /usr/share/i18n/charmaps/).
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Umlaut trouble in filenames
2009-06-18 10:31 [gentoo-user] Umlaut trouble in filenames Alex Schuster
2009-06-18 11:20 ` Renat Golubchyk
2009-06-18 14:19 ` Volker Armin Hemmann
@ 2009-07-24 12:30 ` Alex Schuster
2 siblings, 0 replies; 9+ messages in thread
From: Alex Schuster @ 2009-07-24 12:30 UTC (permalink / raw
To: gentoo-user
Again, I have some problem with umlauts, this time with remote files I want
to download via FTP. In KDE4, Dolphin and konqueror are unable to read the
file. I can get it manually via command line ftp, but then again dolphin or
ark are unable to do anything with it. No big problem, I can rename the file
using wild cards or tab completion, or using convmv, but this just looks
wrong to me. Or is this normal?
My $LANG is de_DE.utf8, and in /etc/locale.gen I have:
en_US ISO-8859-1
en_US.UTF-8 UTF-8
de_DE.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
Wonko
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-07-24 12:31 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-18 10:31 [gentoo-user] Umlaut trouble in filenames Alex Schuster
2009-06-18 11:20 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox