History log of /haiku/src/tests/system/libroot/posix/locale_test.cpp
Revision Date Author Comments
# 735ef328 03-Nov-2012 Oliver Tappe <zooey@hirschkaefer.de>

add test for strptime() to locale_test


# 3d438b96 27-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Fix collation-related part of locale_test.

* don't try to compute the size of an array passed in as parameter,
but use end markers instead
* use fr_CA instead of fr_FR when testing reverse collation of secondary
differences (fr_FR doesn't do that by default anymore)


# 9cb0187a 27-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Adjust locale_test expectations to current ICU-data.


# e8226ce4 02-Mar-2011 Oliver Tappe <zooey@hirschkaefer.de>

* fix support for influencing tzset() via TZ environment variable
(now at least <std> and <offset> are supported properly)
* instead of creating a TimeZone object whenever needed, we now
create it in tzset() and keep it around
* add tests for TZ to locale_test

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40788 a95241bf-73f2-0310-859d-f6bbb57e9c96


# de2e54ac 12-Nov-2010 Oliver Tappe <zooey@hirschkaefer.de>

Adjust tzset() implementation to better follow the POSIX specs and
make some more perl tests happy.
* no longer expect a ICU timezone ID in the TZ environment variable,
but only expect this format if the TZ-value is starting with ':'
* accept "standard" TZ-values like "EST5" (of which only "EST" is
relevant to us) - if such a value is specified, we hardcode the
timezone name to the given value, no matter how ICU calls it
* adjust tests accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39415 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fdb863b6 10-Oct-2010 Oliver Tappe <zooey@hirschkaefer.de>

* added tests for wcwidth() to locale_test that expose the pretty
drastic failure to handle anything else than ascii chars.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38934 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4a0b7d1b 18-Sep-2010 Oliver Tappe <zooey@hirschkaefer.de>

* don't try to check __isctype((char)255), as it will clash with
neutral/identity value at -1 (EOF)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38707 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 611e1071 18-Sep-2010 Oliver Tappe <zooey@hirschkaefer.de>

* add ctype-related tests that expose the cause of #6599
* fix warnings

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38704 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5d46644f 12-Sep-2010 Oliver Tappe <zooey@hirschkaefer.de>

* added tests for localized numerical formatting via printf()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38622 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 560b10ff 16-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

Implement tzset(), gmtime(), localtime() and mktime() on top of ICU
* no longer keep a separate time-backend, since the implementation needs to
access (data of) the locale backend anyway
* moved more stuff from localtime_fading_out.c to localtime.cpp
* added respective tests to locale_test
* added two more tests copied from glibc, test_time.c and tst-mktime.c


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38162 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 60656c54 25-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* don't use B_USE_POSITIVE_POSIX_ERRORS in libroot, let any interested party
use that and the posix_error_mapper

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37737 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a4823efd 24-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

Fix problems with sed and gcc caused by reintegration of posix-locale:
* support invocation of ctype/wctype macros with EOF/WEOF (-1), which would
access more or less random memory before - I don't know why this worked
more or less reliably for the POSIX locale, but it didn't for any other


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37730 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a3f66598 23-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* reintegrated posix-locale

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37725 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 735ef328dbe55987d504511add0b68faf7e7f57d 03-Nov-2012 Oliver Tappe <zooey@hirschkaefer.de>

add test for strptime() to locale_test


# 3d438b96051778550e5dc54eef4a7f42074726a0 27-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Fix collation-related part of locale_test.

* don't try to compute the size of an array passed in as parameter,
but use end markers instead
* use fr_CA instead of fr_FR when testing reverse collation of secondary
differences (fr_FR doesn't do that by default anymore)


# 9cb0187a4ff4222a3e317a6acd4cd18d76ab1cab 27-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Adjust locale_test expectations to current ICU-data.


# e8226ce48d295aa227b3faea3f43747c77604f58 02-Mar-2011 Oliver Tappe <zooey@hirschkaefer.de>

* fix support for influencing tzset() via TZ environment variable
(now at least <std> and <offset> are supported properly)
* instead of creating a TimeZone object whenever needed, we now
create it in tzset() and keep it around
* add tests for TZ to locale_test

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40788 a95241bf-73f2-0310-859d-f6bbb57e9c96


# de2e54ace0213b150fb13d9b740e92f4c1433a06 12-Nov-2010 Oliver Tappe <zooey@hirschkaefer.de>

Adjust tzset() implementation to better follow the POSIX specs and
make some more perl tests happy.
* no longer expect a ICU timezone ID in the TZ environment variable,
but only expect this format if the TZ-value is starting with ':'
* accept "standard" TZ-values like "EST5" (of which only "EST" is
relevant to us) - if such a value is specified, we hardcode the
timezone name to the given value, no matter how ICU calls it
* adjust tests accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39415 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fdb863b626f591cf49690a5a9b5d32e4f34c99e9 10-Oct-2010 Oliver Tappe <zooey@hirschkaefer.de>

* added tests for wcwidth() to locale_test that expose the pretty
drastic failure to handle anything else than ascii chars.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38934 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4a0b7d1bd05e33ecd6b92a8e0e318af759b156d1 18-Sep-2010 Oliver Tappe <zooey@hirschkaefer.de>

* don't try to check __isctype((char)255), as it will clash with
neutral/identity value at -1 (EOF)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38707 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 611e1071a72dfe036554b21b71003f49f2b5fc20 18-Sep-2010 Oliver Tappe <zooey@hirschkaefer.de>

* add ctype-related tests that expose the cause of #6599
* fix warnings

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38704 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5d46644f18704e068c94a24ff4ef9b8f3d3c3b1a 12-Sep-2010 Oliver Tappe <zooey@hirschkaefer.de>

* added tests for localized numerical formatting via printf()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38622 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 560b10ff88d306ac6e6f8f76eafc61df94f941d6 16-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

Implement tzset(), gmtime(), localtime() and mktime() on top of ICU
* no longer keep a separate time-backend, since the implementation needs to
access (data of) the locale backend anyway
* moved more stuff from localtime_fading_out.c to localtime.cpp
* added respective tests to locale_test
* added two more tests copied from glibc, test_time.c and tst-mktime.c


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38162 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 60656c54d14b9898fb062a85a527802c28a84042 25-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* don't use B_USE_POSITIVE_POSIX_ERRORS in libroot, let any interested party
use that and the posix_error_mapper

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37737 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a4823efd7d6f3d7ce09f188afb7bfccc592ad6e4 24-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

Fix problems with sed and gcc caused by reintegration of posix-locale:
* support invocation of ctype/wctype macros with EOF/WEOF (-1), which would
access more or less random memory before - I don't know why this worked
more or less reliably for the POSIX locale, but it didn't for any other


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37730 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a3f665982e2e078ba42e7bf941bd5f3dd8989c55 23-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* reintegrated posix-locale

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37725 a95241bf-73f2-0310-859d-f6bbb57e9c96