bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: [PATCH] I18n flag for msgfmt


From: Bruno Haible
Subject: Re: [PATCH] I18n flag for msgfmt
Date: Wed, 7 Jan 2004 13:42:01 +0100
User-agent: KMail/1.5

Hamed Malek wrote:
> Now, to make this flag work for gettext I think it's better to change
> the patch to something like this:
> #ifdef __GLIBC__
>   while (*format == ' ' || *format == '+' || *format == '-'
>
>          || *format == '#' || *format == '0'
>          || *format == 'I' || *format== '\'')
>
>     format++;
> #else
>   while (*format == ' ' || *format == '+' || *format == '-'
>
>          || *format == '#' || *format == '0' || *format == '\'')
>
>     format++;
> #endif
>
> Then, It would be portable.

This still doesn't work because this code (in "msgfmt") is not executed
on the same machine on which the .mo file is used (and this is where the
distinction between glibc and non-glibc is important). For example, a
maintainer on a Linux system would prepare .mo files, store them in his
package's distribution, and someone on a Solaris system would use this
.mo file and thus pass "%Id" to a printf() function that does not understand
it.

Anyway, I'm preparing a patch following Behdad's ideas.

Bruno





reply via email to

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