[uClibc]locale support in uClibc 0.9.12
David Meggy
dmeggy at techsol.ca
Mon Jul 15 04:38:01 UTC 2002
Hi, I'm having troubles getting the locale support to work in the latest
uClibc version. The first problem I solved myself and the patch is
below. The patch is needed for cross compiling. The second problem is
with extra/locale/gen_wc8bit.c. The following is a snippet from the
main function. This fails on my system.
if (!setlocale(LC_CTYPE, "en_US.UTF-8")) {
printf("setlocale(LC_CTYPE,\"en_US.UTF-8\") failed!\n");
return EXIT_FAILURE;
If I comment it out, I only run into more problems later. How can I get
around this problem?
--- uClibc-0.9.12/extra/locale/Makefile.old Sun Jul 14 21:11:33 2002
+++ uClibc-0.9.12/extra/locale/Makefile Sun Jul 14 21:18:24 2002
@@ -72,13 +72,13 @@
echo target arch == native arch case. Sorry.
else
-gen_mmap: gen_mmap.c c8tables.h wctables.h locale_tables.h
- gcc $(CFLAGS_mmap) -Os -Wall -static gen_mmap.c -o gen_mmap
-
locale.mmap: gen_mmap
./gen_mmap
endif
+
+gen_mmap: gen_mmap.c c8tables.h wctables.h locale_tables.h
+ gcc $(CFLAGS_mmap) -Os -Wall -static gen_mmap.c -o gen_mmap
lmmtolso: lmmtolso.c
gcc -Os -Wall lmmtolso.c -o lmmtolso
David
--
~~~~~~~~~~~~~~~~~~~~~~~~
David Meggy
Engineering
Technical Solutions Inc.
Unit #1 7157 Honeyman St
Delta BC Canada, V4G 1E2
www.techsol.ca
eMail: dmeggy at techsol.ca
Tel: 604 946 TECH (8324)
Fax: 604 946 6445
~~~~~~~~~~~~~~~~~~~~~~~~
More information about the uClibc
mailing list