glib.h New functions for conversion between UTF-8 and the encoding
[platform/upstream/glib.git] / ChangeLog.pre-2-12
index 5edddea..cb3d870 100644 (file)
@@ -1,3 +1,212 @@
+2000-02-01  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h
+       * gstrfuncs.c (g_filename_to_utf8, g_filename_from_utf8): New
+       functions for conversion between UTF-8 and the encoding expected
+       by C runtime functions like open() and stat(), and returned by
+       readdir().
+
+       Implement them on Win32 where we use the system "ANSI" codepage,
+       which might be single-byte or double-byte. On Unix, just skip the
+       issue for now and provide dummy implementations that return a copy
+       of the argument.
+
+       * README.win32
+       * build-dll
+       * glib.def: Minor updates.
+
+Wed Jan 26 05:24:38 2000  Tim Janik  <timj@gtk.org>
+
+       * glib.h:
+       * gmain.c: s/current_time/dispatch_time/ for the dispatch() handlers.
+       refetch the current time after invocation of poll() to cover up for
+       the time spent in that function call.
+
+Fri Jan 21 10:18:24 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * glib.h (G_N_ELEMENTS): Added G_N_ELEMENTS macro to determine
+       the number of elements in an array.
+
+Sun Jan  9 13:28:36 2000  Tim Janik  <timj@gtk.org>
+
+       * gstrfuncs.c (g_strtod): correctly fetch the current locale,
+       fix from owen.
+
+1999-12-16  Tor Lillqvist  <tml@iki.fi>
+
+       * gmodule/gmodule-win32.c: Use FormatMessage to translate system
+       error codes into textual messages.
+
+1999-11-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h (G_TRYLOCK): This of course should return TRUE in a
+       program with a thread-disabled GLib.
+
+1999-11-18  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.def: g_strjoin was missing.
+
+1999-11-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * acconfig.h, config.h.win32.in, configure.in: Renamed
+       GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect
+       changed meaning.
+
+       * configure.in: Cope with systems, that have a pthread_t type,
+       that is not a pointer. Hint from Karl Nelson
+       <kenelson@ece.ucdavis.edu>. Define GLIB_SIZEOF_SYSTEM_THREAD to 4
+       for Solaris. Cope with systems, that have no default mutex
+       initialize, like obviously most DCE systems.
+
+       * glib.h, gthread.c: Changed the prototype of thread_create and
+       thread_self to return the system thread into provided memory
+       instead of a return value. This is necessary, as HPUX has a
+       pthread_t, that is bigger than the biggest integral type there.
+
+       * gthread.c: system_thread is no longer a pointer, but an memory
+       area of size GLIB_SIZEOF_SYSTEM_THREAD. Changed the
+       zeroinitialization and the tests for zeroness accordingly.
+
+1999-11-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Create docs/glib-config.1 from
+       docs/glib-config.1.in. Makes 'make distcheck' happy (and me too).
+
+       * glib-config.1: Removed from CVS, as it is a generated file.
+
+1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * configure.in: Make the test for getpwuid_r work on newer AIX
+        versions, too. Still works on Solaris and Linux. Patch from Craig
+        Rodrigues <rodrigc@mediaone.net>.
+
+1999-11-08  Tor Lillqvist  <tml@iki.fi>
+
+       * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
+       and LANG first. Some refinements to the sublanguage logic.
+
+1999-11-04  Tor Lillqvist  <tml@iki.fi>
+
+       * makefile.{cygwin,msc}.in: Add gwin32 object. Add rule to make .i
+       (preprocessed source) files.
+
+1999-11-01  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h
+       * glib.def: Rename Win32-only functions from gwin_* to g_win32_*
+       to match the GLib naming conventions.
+
+       * gutils.c
+       * gwin32.c
+       * testglib.c
+       * Makefile.am: Move the Win32-only functions to the new
+       file gwin32.c
+
+1999-10-31  Tor Lillqvist  <tml@iki.fi>
+
+       * gutils.c (gwin_getlocale): New Win32-specific function, returns
+       a Unixish current locale string (en, zh_TW etc).
+
+       * glib.h: Declare it.
+
+       * glib.def: Export it.
+
+       * testglib.c: Test it.
+
+       * gmessages.c (Win32: ensure_stdout_valid): Some improvements,
+       make sure we don't call AllocConsole several times, which I think
+       has happened.
+
+Sun Oct 31 18:55:01 1999  ape@spacetec.no  (Asbjorn Pettersen)
+
+       * gcache.c (g_cache_remove): Test if node is NULL.
+       If not tested, GIMP's script-fu will crash. 
+
+Sun Oct 17 18:11:40 1999  Tim Janik  <timj@gtk.org>
+
+        * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around
+        destroy() notification here as well.
+
+1999-10-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+        * gdataset.c (g_datalist_clear_i): Avoid Freezing, when g_datalist
+        is called recursivly. Reported by Ola Andersson <rand@ling.umu.se>.
+
+Tue Oct 12 14:17:12 1999  Tim Janik  <timj@gtk.org>
+
+       * glib.h: removed useless g_string(x) macro that cluttered the namespace
+       and was just a poor wrapper around the cpp '#' symbol, use #x if you
+       need to work around this.
+       added new macro G_STRINGIFY(arg) that will convert arg to a string,
+       no matter whether it contains macros or not.
+
+1999-10-12  Tor Lillqvist  <tml@iki.fi>
+
+       * config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
+       too.
+
+       * glib.h: Small Win32 comments improvement.
+
+Tue Oct 12 12:16:12 1999  Tim Janik  <timj@gtk.org>
+
+       * gmessages.c (g_printf_string_upper_bound): completly new implementation
+       for printf string upper bounds calculation.
+       we handle all glibc 2.1 format specifiers now, except for positional
+       parameters (%nn$...) and wide char strings, plus some obscure upper
+       case variants of the standard conversions. this fixes a lot of
+       bugs in the old code, i.e.
+       - NULL format strings
+       - floats with exponents >+24
+       - %G
+       - precision specifications in general
+       - negative field widths
+       - %p for SIZEOF_VOID_P > 4 platforms
+       we now issue warnigns in places where the old code would have
+       caused buffer overruns anyways. warnings are suppressed when invoked
+       from glogv(), to avoid infinite recursions if someone passes a log
+       message that comes with really obscure format specifications.
+
+Tue Oct 12 11:49:00 1999  Tim Janik  <timj@gtk.org>
+
+       * gstrfuncs.c: nuked old g_printf_string_upper_bound() version.
+
+Tue Oct 12 03:34:40 1999  Tim Janik  <timj@gtk.org>
+
+       * glib.h: added GFloatIEEE754 and GDoubleIEEE754 unions to access sign,
+       mantissa and exponent of IEEE floats and doubles (required by the new
+       version of g_printf_string_upper_bound). the unions are endian specific,
+       we handle G_LITTLE_ENDIAN and G_BIG_ENDIAN as of currently. ieee floats
+       and doubles are supported (used for storage) by at least intel, ppc and
+       sparc, reference:
+        http://twister.ou.edu/workshop.docs/common-tools/numerical_comp_guide/ncg_math.doc.html
+       
+Mon Oct 11 18:01:49 1999  Tim Janik  <timj@gtk.org>
+
+       * configure.in: added additional checks to figure sizes of size_t,
+       ptrdiff_t and intmax_t (required by g_printf_string_upper_bound).
+
+Wed Oct  6 12:44:23 PDT 1999 Manish Singh <yosh@gimp.org>
+
+       * configure.in: blah. use G_WITH_CYGWIN instead of G_HAVE_CYGWIN
+
+1999-10-05  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h: (Win32) Drop the mapping of POSIX function names to the
+       underscored versions, it's unnecessary after all. With MSVC we get
+       them from oldnames.lib, with gcc-2.95 and mingw32 from
+       -lmoldname-msvc. Add comment about what headers to include for
+       prototypes.
+
+       * glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
+
+       * gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
+
+       * build-dll: Don't strip.
+
+       * tests/string-test.c tests/dirname-test.c: Use G_OS_WIN32.
+
+       * glib.def: Add g_thread_use_default_impl.
+
 Sun Oct  3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
 
        * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN