summaryrefslogtreecommitdiff
path: root/extra/locale
AgeCommit message (Collapse)Author
2021-01-08extra/locale: fix gen_wc8bit diagnostic outputMax Filippov
Diagnostic for missing UTF locale is printed to stdout instead of stderr, fix that. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2017-08-20locale: use a better fallbackWaldemar Brodkorb
Ensure to always allow a build and fallback to C.UTF-8 and even C. Signed-off-by: Eugene Yudin <e.yudin@ndmsystems.com>
2017-07-28fix tolower and localesEugene Yudin
The function towlower doesn't work with locales different from C. Issue was introduced in commit: 8cde3a9bf2856dcb9a759dec7ecb04a68e712254 Call to setlocale is needed for correct generation of the table uplow_diff. Otherwise you receive compile time error "range assumption error" after uncommenting the call. Similar problem described here: http://lists.uclibc.org/pipermail/uclibc/2015-March/048852.html This commit fix the problem by using int32_t values.
2017-06-21remove editor hints for viWaldemar Brodkorb
2016-09-27locale: disable parallel build as it is broken hereWaldemar Brodkorb
2016-09-26locale: cleanup supportWaldemar Brodkorb
Enable locale application to be build when utils are build. Remove useless compile and link warnings. Default to minimal locale builds. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
2016-01-03remove pregenerated locale support, we don't support itWaldemar Brodkorb
2015-08-10locales: add patch from OpenWrtWaldemar Brodkorb
This fixes some build problems on f.e. Fedora hosts, when locales are enabled. Suggested via #buildroot on Freenode.
2015-06-10buildsys: pregen depends on xlocaleBernhard Reutner-Fischer
pt-initfini eventually depends on xlocale Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-06-10buildsys: swap V=1 with V=2 command printingBernhard Reutner-Fischer
Previously V=1 did print abbreviated commands and V=2 the full commands. Kbuild-based build-systems behave in the opposite way and this is apparently confusing or inconvenient for users so swap our V handling to be in line with kbuild (and automake as far as V=0 / V=1 is concerned). Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-04-22buildsys: pregen depends on xlocaleBernhard Reutner-Fischer
since ae9e3f46 sched.h pulls in stdlib.h (for malloc() and free()) and thus also xlocale.. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2013-03-14buildsys: remove calls to mktempBernhard Reutner-Fischer
Nowadays we should not be racy in this area anymore, so simplify generating temporary build-files. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2013-03-14extra/locale: Mark __codeset_8_bit_t as packed for MetaMarkos Chandras
gen_ldc writes offsets into the __locale_mmap_t structure. This relies on the host system having the same struct offsets as the target. On Meta, the structs are always aligned to a multiple of 4 bytes, and for these targets it is required for the struct to be packed so that it is more likely to match the host system (typically x86 which does not align structs). Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-06-15do not include xlocale.h, it is included by locale.h when neededPeter S. Mazinger
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-12-18extra/locale/Makefile: Consider the case of building out of sourcedirKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-05-05Fix gen_wc8bit support for finding a UTF8 locale on host.Andy Gibbs
gen_wc8bit was previously patched to support UTF8 locales other than the default en_US.UTF-8 by patch id 0e14b8f425c562749d3821a42414b1ce6b3b0923. This was incomplete in its implementation and still failed where item(s) in the list returned by 'locale -a' already had 'UTF8' appended to the name. This patch rectifies this situation, plus adds an extra fix to avoid trimming '\n' from an empty line which could cause a segfault. Signed-off-by: Andy Gibbs <andyg1001@hotmail.co.uk> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-03-25prettify make cleanBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-11-20remove superfluous extra semicolonsBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-10-28support selecting which locales to buildBernhard Reutner-Fischer
Introduce UCLIBC_BUILD_MINIMAL_LOCALES and if selected build only those locales. Based on a patch by Bernhard Reutner-Fischer. Signed-off-by: Marc Andre Tanner <mat@brain-dump.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-09-18fix make {,install_}{,host}utilsBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-08-25use CURDIRBernhard Reutner-Fischer
use CURDIR instead of spawning a separate shell as suggested by Mike. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-08-19use pwd, not PWDBernhard Reutner-Fischer
PWD may point to somewhere else if we're run from another make Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-08-17support building out-of-treeBernhard Reutner-Fischer
Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-06-28locale: gen_wc8bit: try to find UTF8 locale automaticallyMike Frysinger
Rather than require everyone to have en_US.UTF-8 when we really need any UTF8 locale, do a scan for possible UTF8 locales if the default en_US does not exist. Hopefully this should make the utility "just work" for most people. Reported-by: Daniel Cordero <theappleman@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-12-22- fix for !GETOPT_LONGBernhard Reutner-Fischer
2008-12-22extra/locale/gen_wctype.c: remove __CTYPE_isalnum and friends;Denis Vlasenko
stop using macros with hidden parameter - that's evil; reformat broken indenting (it was not matching the number of {}s); fix format warnings (int vs size_t vs long) No code changes (verified with objdump)
2008-12-22UCLIBC_CTYPE_HEADER define is removed, as it alwaysDenis Vlasenko
equal to "include/bits/uClibc_ctype.h" __CTYPE_unclassified and other similar __CTYPE_xxxx constants are moved to separate include file, bits/uClibc_charclass.h Duplicate declaration of these constants is removed from libc/misc/wctype/_wctype.c Ugly re-inclusion trick in extra/locale/gen_wctype.c deleted Large ifdefed-out chunk in extra/locale/gen_wctype.c removed Move __CTYPE_isalnum() etc macros from uClibc_ctype.h to their single user, extra/locale/gen_wctype.c (can be simplified further) Overall, no code changes (verified with objdump)
2008-12-21more of warning fixes, mostly pointer signedness mismatchesDenis Vlasenko
2008-12-20extra/locale/locale_mmap.h: fix broken whitespaceDenis Vlasenko
2008-12-20libc/misc/locale/locale.c: heed a pile of warningsDenis Vlasenko
from signed/unsigned char conversions
2008-12-20libc/misc/locale/locale.c: remove one unneeded static data,Denis Vlasenko
rewrite one exceptionally unreadable loop. Heed a few warnings (wrong type for string op params) text data bss dec hex filename - 1164 16 0 1180 49c libc/misc/locale/newlocale.os + 1180 0 0 1180 49c libc/misc/locale/newlocale.os - 494480 2751 15684 512915 7d393 lib/libuClibc-0.9.30-svn.so + 494472 2735 15684 512891 7d37b lib/libuClibc-0.9.30-svn.so
2008-11-23- fix args (untested)Bernhard Reutner-Fischer
2008-11-11- update recommendation for pregenerated locales.Bernhard Reutner-Fischer
- update name of locale-tarball. We will retroactively fill them in, eventually
2008-11-07- less verbose make cleanBernhard Reutner-Fischer
2008-10-14- fix locale dependencies and make default locale generation less verbose.Bernhard Reutner-Fischer
The verbosity can be set to the previous level by passing V=2 to make.
2008-10-09- standardize fopen error message a bitBernhard Reutner-Fischer
2008-10-09- mention a FIXME for some make guru :)Bernhard Reutner-Fischer
2008-10-08- sync comment to rule as pointed out by psm.Bernhard Reutner-Fischer
2008-10-08- fix building locale (pre- and generated, even parallel)Bernhard Reutner-Fischer
2008-10-08- add/use variables to make build-tools configurableBernhard Reutner-Fischer
2008-09-25- add missing dependency on lt_defines.hBernhard Reutner-Fischer
- retry with some different locale if en_US happens not to be there
2008-09-24- do not segfault if we end up with empty tablesBernhard Reutner-Fischer
- silence some warnings while at it
2008-07-23- trim any trailing whitespaceBernhard Reutner-Fischer
2008-06-11Fix some compiler warningsCarmelo Amoroso
2008-05-27Fix build failure due to missing 'smallint' definitionCarmelo Amoroso
These are source files built on the host. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-05-20Introduce and use small[u]int type. Changes in size:Denis Vlasenko
- 79 0 28 107 6b libc/inet/rpc/create_xid.o + 76 0 25 101 65 libc/inet/rpc/create_xid.o - 126 0 4 130 82 libc/misc/assert/__assert.o + 123 0 1 124 7c libc/misc/assert/__assert.o - 648 4 24 676 2a4 libc/misc/internals/__uClibc_main.o + 645 4 21 670 29e libc/misc/internals/__uClibc_main.o - 230 0 4 234 ea libc/stdlib/abort.o + 216 0 1 217 d9 libc/stdlib/abort.o - 129 0 4 133 85 libc/termios/tcgetsid.o + 126 0 1 127 7f libc/termios/tcgetsid.o
2008-05-19Added a bounch of locale fixes.Carmelo Amoroso
* extra/locale/gen_wc8bit.c: use strrchr to parse locale name to handle the case in which it contains a '.' character like ANSI_X3.4-1968 * include/locale.h: use __UCLIBC_HAS_XLOCALE__ to control inclusion of xlocale.h only * libc/misc/ctype/ctype.c: add missing weak_alias for __tolower_l and __toupper_l * libc/misc/locale/locale.c: use strcasecmp (case insensitive) for utf-8 locale name. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-05-02- indentBernhard Reutner-Fischer
2008-05-02Added implementation for 'locale' command.Carmelo Amoroso
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
2008-03-16Remove extra file separatorCarmelo Amoroso