[Top][All Lists]

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

Re: parted nls problem

From: Andrew Clausen
Subject: Re: parted nls problem
Date: Sat, 28 Jul 2001 23:54:10 +1000
User-agent: Mutt/1.2.5i

On Sat, Jul 28, 2001 at 01:04:38PM +0200, Kjetil Torgrim Homme wrote:
> 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.

It uses mbsrtowcs().  That's all.

> Why are you messing with the strings, anyway?  Rip out that
> wide character handling, let libc handle it.

Word wrapping, etc.

> 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 ...
> http://www.gnu.org/manual/glibc-2.2.3/html_node/libc_126.html

The problem occurs when the gettext strings are using a different ENCODING
(or maybe charset...) to the locale.  IIRC, the gettext people said this
is a gettext / libc problem, that was going to be fixed... but it's a while

Shouldn't mbsrtowcs() be harmless?


reply via email to

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