localename: Make aware of thread locale.
[gnulib.git] / ChangeLog
index dc63d28..93bfdf3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,94 @@
+2009-12-23  Bruno Haible  <bruno@clisp.org>
+
+       localename: Make aware of thread locale.
+       * lib/localename.h (gl_locale_name_thread): New declaration.
+       (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
+       behaviour with respect to thread locale.
+       * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
+       <langinfo.h>, glthread/lock.h.
+       (SIZE_BITS): New macro.
+       (string_hash): New function.
+       (struct hash_node): New type.
+       (HASH_TABLE_SIZE): New macro.
+       (struniq_hash_table, struniq_lock): New variables.
+       (struniq): New function.
+       (gl_locale_name_thread): New function.
+       (gl_locale_name): Invoke it.
+       * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
+       * modules/localename (Depends-on): Add lock.
+       Reported by Mike Gran <spk121@yahoo.com>.
+
+2009-12-23  Eric Blake  <ebb9@byu.net>
+
+       va-args: new module
+       * modules/va-args: New file.
+       * m4/va-args.m4 (gl_VA_ARGS): Likewise.
+       * MODULES.html.sh (Core language properties): Mention it.
+
+       gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
+       * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
+       named alias for __attribute__((__unused__)).
+       * lib/chown.c: Update client.
+       * lib/fchmodat.c: Likewise.
+       * lib/fts.c: Likewise.
+       * lib/getdate.y: Likewise.
+       * lib/getgroups.c: Likewise.
+       * lib/getopt.c: Likewise.
+       * lib/getugroups.c: Likewise.
+       * lib/mkdir.c: Likewise.
+       * lib/mkfifo.c: Likewise.
+       * lib/mkfifoat.c: Likewise.
+       * lib/mknod.c: Likewise.
+       * lib/mknodat.c: Likewise.
+       * lib/readlink.c: Likewise.
+       * lib/se-context.in.h: Likewise.
+       * lib/se-selinux.in.h: Likewise.
+       * lib/sockets.c: Likewise.
+       * lib/symlink.c: Likewise.
+       * lib/symlinkat.c: Likewise.
+       * lib/unicodeio.c: Likewise.
+       * lib/unistr.h: Likewise.
+       * tests/test-areadlink.c: Likewise.
+       * tests/test-areadlinkat.c: Likewise.
+       * tests/test-filenamecat.c: Likewise.
+       * tests/test-fseeko.c: Likewise.
+       * tests/test-ftello.c: Likewise.
+       * tests/test-getdate.c: Likewise.
+       * tests/test-getgroups.c: Likewise.
+       * tests/test-gethostname.c: Likewise.
+       * tests/test-quotearg.c: Likewise.
+       * tests/test-version-etc.c: Likewise.
+       * tests/test-xalloc-die.c: Likewise.
+       * tests/test-xfprintf-posix.c: Likewise.
+       * tests/test-xprintf-posix.c: Likewise.
+       * tests/test-xvasprintf.c: Likewise.
+
+       tests: avoid compiler warnings
+       * tests/test-fcntl.c (main): Delete unused parameters.
+       * tests/test-freopen-safer.c (main): Likewise.
+       * tests/test-xalloc-die.c (main): Mark unused parameters.
+       * tests/test-fseeko.c (main): Likewise.
+       * tests/test-ftello.c (main): Likewise.
+       * tests/test-nanosleep.c (main): Avoid declaration warning.
+       * tests/test-sleep.c (main): Likewise.
+       * tests/test-unsetenv.c (main): Silence warning about string
+       literal.
+       * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
+
+2009-12-23  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-localename.c (test_locale_name): New function, extracted
+       from main. Also test mixed situations.
+       (test_locale_name_posix, test_locale_name_environ,
+       test_locale_name_default): New functions.
+       (main): Invoke them all.
+       * modules/localename-tests (configure.ac): Test for newlocale.
+
+2009-12-23  Bruno Haible  <bruno@clisp.org>
+
+       unistd: Ensure getcwd gets declared before being overridden.
+       * lib/unistd.in.h: Conditionally include <io.h>.
+
 2009-12-22  Bruno Haible  <bruno@clisp.org>
 
        wchar: Diagnose broken combination of glibc and gcc versions and flags.