Re: [gentoo-user] Umlaut trouble in filenames

2009-07-24 Thread Alex Schuster
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...@euro ISO-8859-15

Wonko



Re: [gentoo-user] Umlaut trouble in filenames

2009-06-20 Thread Mick
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.u...@euro set now, before it was unset. Those umlaut
 
  btw
  use either 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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Umlaut trouble in filenames

2009-06-19 Thread Alex Schuster
Volker Armin Hemmann writes:

 On Donnerstag 18 Juni 2009, Alex Schuster wrote:

  I have lang=de_de.u...@euro set now, before it was unset. Those umlaut

 btw
 use either 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




Re: [gentoo-user] Umlaut trouble in filenames

2009-06-19 Thread Volker Armin Hemmann
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.u...@euro set now, before it was unset. Those umlaut
 
  btw
  use either 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...@euro ISO-8859-15

in locale.gen 
and
lang=de...@euro
language=de...@euro
lc_all=de...@euro

set.

which works well. utf gave me trouble in the past, so I shelfed that idea a 
long time ago.



Re: [gentoo-user] Umlaut trouble in filenames

2009-06-19 Thread Dirk Heinrichs
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


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Umlaut trouble in filenames

2009-06-18 Thread Alex Schuster
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.u...@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




Re: [gentoo-user] Umlaut trouble in filenames

2009-06-18 Thread Renat Golubchyk
Hi!

Am Thu, 18 Jun 2009 12:31:09 +0200
schrieb Alex Schuster wo...@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.u...@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)


signature.asc
Description: PGP signature


Re: [gentoo-user] Umlaut trouble in filenames

2009-06-18 Thread Alex Schuster
Renat Golubchyk writes:

 schrieb Alex Schuster wo...@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.u...@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



Re: [gentoo-user] Umlaut trouble in filenames

2009-06-18 Thread Volker Armin Hemmann
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.u...@euro set now, before it was unset. Those umlaut

btw
use either de...@euro or de_DE.UTF8