This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: contrib/gcc_update in non-english locales


Hans-Peter Nilsson wrote:
On Wed, 21 Apr 2010, Paolo Bonzini wrote:
On 04/21/2010 06:25 PM, Basile Starynkevitch wrote:
Hello All

The contrib/gcc_update script does not seem to work in non-english
locales (e.g. in a French UTF8 locale on Linux).
[[...]]

Basile, always "diff -up old new".
Thanks for spotting my mistake. I messed up. The patch is:


% svn diff gcc-trunk-bstarynk/contrib/gcc_update Index: gcc-trunk-bstarynk/contrib/gcc_update =================================================================== --- gcc-trunk-bstarynk/contrib/gcc_update (revision 157825) +++ gcc-trunk-bstarynk/contrib/gcc_update (working copy) @@ -43,6 +43,11 @@ # Default options used when updating via SVN (none). UPDATE_OPTIONS=""

+# set the locale to C to make this work for users with foreign locale
+# like e.g. French UTF-8.
+LANG=C
+LC_ALL=C
+
 ######## Anything below shouldn't be changed by regular users.


And the contrib/ChangeLog entry is


2010-04-22  Basile Starynkevitch  <basile@starynkevitch.net>
	* gcc_update: Sets locale to C.


Comments are welcome!


cheers
--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]