incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <>
Subject RE: [PATCH]
Date Tue, 20 Nov 2007 11:43:57 GMT
> -----Original Message-----
> From: Martin Sebor [] 
> Sent: Monday, November 19, 2007 8:30 PM
> To:
> Subject: Re: [PATCH]
> Martin Sebor wrote:
> > Seems reasonable. We should also guard the calls to the the wchar_t 
> > specializations of the function with _RWSTD_NO_WCHAR_T.
> On second thought, isn't there a more robust way of fixing 
> this, one that makes it work regardless of the order of the 
> calls to the function? E.g., have the function that needs the 
> environment variable defined always define it and the one 
> that needs it undefined always undefine it?

  The environment variable is defined in rw_create_locale() by invoking
rw_set_locale_root (). But rw_create_locale() designed to set
variable and exec localedef utility only once.

  But we can save the variable value in test_libc(), then undefine it
restore the value at the end of the function.


View raw message