[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parted nls problem

From: Kjetil Torgrim Homme
Subject: Re: parted nls problem
Date: 28 Jul 2001 13:04:38 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Andrew Clausen <address@hidden> writes:

> On Sat, Jul 28, 2001 at 03:01:17AM +0200, Kjetil Torgrim Homme wrote:
> > I have the same problem as Kent Robotti reported in April.
> > 
> > I'm compiling parted 1.5.3, and have the newest gettext.
> > 
> > $ LC_ALL=de ~/test/sbin/parted 
> > Error during translation: Ungültiges oder unvollständiges Multi-Byte oder 
> > Wide-Zeichen
> > $ LC_ALL=nn ~/test/sbin/parted 
> > Error during translation: Invalid or incomplete multibyte or wide character
> Short story:
> You are using an invalid locale.  Try LC_ALL=de_DE.
> Long story:
> LC_CTYPE is the character set to use, and LANG is the language
> to use.  LC_ALL overrides these (IIRC).  However, it isn't setting
> LC_CTYPE to an appropriate character set for that language.  (Perhaps
> it should)
> Anyway, I don't think this is a Parted issue.

I think it is a Parted issue, this isn't a problem with any other
localised packages.  If I understand the code correctly, it assumes
that the output from gettext is multibyte, and that is not the case
here.  Why are you messing with the strings, anyway?  Rip out that
wide character handling, let libc handle it.

If you want to be sure of which character set you get (i.e. UTF-8 or
one of the ISO 8859 family, wide characters are too painful), use
bind_textdomain_charset -- unfortunately, this is a very new function,
so most users will not have it.  I don't see why you need it, but ...


Kjetil T.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]