[crosstool-ng] [PATCH] Enable locales in uClibc .config
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Tue Oct 28 18:41:00 GMT 2008
Hello Thomas!
Hello All!
Thomas, I'm very sorry for the delay, I have much on-going ATM:
bisecting a toolchain build is quite time consuming... :-(
On Friday 24 October 2008 12:23:14 Thomas Petazzoni wrote:
> When enabling locales in crosstool-ng, uClibc doesn't get compiled with
> locale support (UCLIBC_HAS_LOCALE remains unset in uClibc .config). The
> following patch fixes this.
Anyway, last I looked, locales *were* broken in uClibc. Just tried with
the following code, and with any locale set:
#include <stdio.h>
int main( int argc, char** argv ) {
return printf( "float: '%f'\n", (float)1.0 );
}
And it turned up being printed as:
float: '10'
No decimal character, even with the C or POSIX locales... :-(
> However, the patch doesn't set UCLIBC_PREGENERATED_LOCALE_DATA, but
> uClibc configuration strongly suggests to use it. Maybe we should
> conform to this recommandation ?
Yes, definitely. It won't build/work without pre-generated locales data,
anyway. Care to resend, please?
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software Designer | \ / CAMPAIGN | ___ |
| --==< ^_^ >==-- `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
`------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list