This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: contrib/gcc_update in non-english locales
On 04/22/2010 09:21 AM, Dave Korn wrote:
> On 22/04/2010 06:17, Basile Starynkevitch wrote:
>>>>> The contrib/gcc_update script does not seem to work in non-english
>>>>> locales (e.g. in a French UTF8 locale on Linux).
> You never told us what the problem actually is; is it caused by the locale,
> or the encoding? Thing is ...
Well, if I run:
LANG=fr_FR.UTF-8 ./contrib/gcc_update fixincludes/; cat gcc/REVISION
the output is:
[ revision ]
(Ditto for it_IT.UTF-8.) If I use LANG=en_US.UTF-8 or LANG=de_DE.UTF-8
or LANG=nl_NL.UTF-8, the result is:
[trunk revision 158623]
Thus, the language settings and not the encoding seems to be the
problem. (Well, an encoding where the ASCII characters are not 8bit
variables might also cause problems ...) For es_ES.UTF-8 or zh_CN.UTF-8
it works half way: "[trunk revision ]", i.e. "trunk" is there, but the
revision is missing.
Therefore, I think the patch is fine.
Tobias