diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-09 15:05:36 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-09 15:05:36 +0000 |
commit | a691312d8794d5516402bb6bb0d3e90c40ba188b (patch) | |
tree | dcac242fcad7d24a4f452722de26c56cfaf8c98a /test/locale/tst-leaks.c | |
parent | 56df95fe5d0778352abe09225d6587b88643d135 (diff) |
Added several tests for locale support (8 bit and multibyte UTF-8)
Basically all tests have been taken from glibc. For testing multibyte encoding
EUC_JP parts have been commented out and added new section for UTF-8
that is the only multibyte codeset currently supported on uCLibc.
Some tests are still failing due to unsupported/missing features, other have been
fixed.
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'test/locale/tst-leaks.c')
-rw-r--r-- | test/locale/tst-leaks.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/locale/tst-leaks.c b/test/locale/tst-leaks.c new file mode 100644 index 000000000..7a4b557f5 --- /dev/null +++ b/test/locale/tst-leaks.c @@ -0,0 +1,18 @@ +#include <locale.h> +#include <mcheck.h> + +int +main (void) +{ + int cnt; + + mtrace (); + + for (cnt = 0; cnt < 100; ++cnt) + { + setlocale (LC_ALL, "de_DE.ISO-8859-1"); + setlocale (LC_ALL, "de_DE.UTF-8"); + } + + return 0; +} |