2504 Commits

Author SHA1 Message Date
Matthias Clasen
dbec2bd1f6 Report more accurate position for invalid UTF-8. (#350802, Simon Budig)
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (g_markup_parse_context_parse): Report
        more accurate position for invalid UTF-8.  (#350802,
        Simon Budig)



svn path=/branches/glib-2-12/; revision=5374
2007-03-06 07:14:10 +00:00
Matthias Clasen
1929e66919 Add NULL checks to the base64 functions that take pointers. (#399611,
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c: Add NULL checks to the base64
        functions that take pointers.  (#399611, Martyn Russell)


svn path=/branches/glib-2-12/; revision=5372
2007-03-06 05:38:14 +00:00
Matthias Clasen
1fe808ccc0 Work with Solaris gettext (#341988, Laszlo Peter)
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        Work with Solaris gettext (#341988, Laszlo Peter)

        * m4macros/glib-gettext.m4: Make GLIB_WITH_NLS define
        MSGFMT_OPTS if msgfmt supports -c.

        * po/Makefile.in.in: Use MSGFMT_OPTS when calling
        msgfmt.


svn path=/branches/glib-2-12/; revision=5370
2007-03-06 05:25:25 +00:00
Matthias Clasen
4f79c0b387 Apply a patch by Loïc Minier to fix building with -Wl,-z,defs. (#149144)
2007-03-06  Matthias Clasen  <mclasen@Redhat.com>

        * tests/Makefile.am: Apply a patch by Loïc Minier
        to fix building with -Wl,-z,defs.  (#149144)


svn path=/branches/glib-2-12/; revision=5368
2007-03-06 05:05:14 +00:00
Ihar Hrachyshka
b90c49f8d3 Added Belarusian Latin translation by Ales Navicki
svn path=/branches/glib-2-12/; revision=5356
2007-03-03 19:16:48 +00:00
Tor Lillqvist
6e15aa0535 New Win32-only function. Use the wide character Win32 API to do the work
2007-02-17  Tor Lillqvist  <tml@novell.com>

	* glib/gdate.c (win32_strftime_helper): New Win32-only
	function. Use the wide character Win32 API to do the work of
	strftime(): GetThreadLocale(), GetLocaleInfoW(), GetDateFormatW()
	and GetTimeFormatW().
	(g_date_strftime): On NT-based Windows use win32_strftime_helper()
	instead of strftime() to avoid codepage issues with strftime().
	Unfortunately using wcsftime() would not help either. (#404832)


svn path=/branches/glib-2-12/; revision=5338
2007-02-17 08:34:39 +00:00
Roozbeh Pournader
a9e685a49e Remove mention of no-longer-existing PATCH keyword in bugzilla. (#396899)
2007-01-24  Roozbeh Pournader  <roozbeh@farsiweb.info>

	* README: Remove mention of no-longer-existing PATCH
	keyword in bugzilla. (#396899)

svn path=/branches/glib-2-12/; revision=5314
2007-01-24 13:18:03 +00:00
Matthias Clasen
e174f461c6 Clarify the behaviour is max_len is zero. (#400044, Benjamin Dauvergne)
2007-01-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutf8.c (g_utf8_get_char_validated): Clarify
        the behaviour is max_len is zero.  (#400044,
        Benjamin Dauvergne)


svn path=/branches/glib-2-12/; revision=5312
2007-01-24 04:43:23 +00:00
Matthias Clasen
072704a568 i2007-01-23 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (print_help): Use bitwise &
        when operating on flags.  (#399971, Jon Oberheide)



svn path=/branches/glib-2-12/; revision=5309
2007-01-24 04:09:02 +00:00
Matthias Clasen
5894841e70 Some file list updates (#398069, Owen Taylor)
2007-01-19  Matthias Clasen  <mclasen@redhat.com>

        Some file list updates (#398069, Owen Taylor)

        * docs/Changes-2.0.txt
        * docs/reference/README.cvs-commits
        * glib.spec.in: Remove obsolete files

        * tests/Makefile.am:
        * glib/libcharset/Makefile.am:
        * gobject/Makefile.am:
        * Makefile.am: Add some missing files to EXTRA_DIST

        * tests/timeloop-basic.c: Make it build
        * HACKING: Small updates



svn path=/branches/glib-2-12/; revision=5303
2007-01-19 15:53:07 +00:00
Matthias Clasen
653bb55d8f Fix a typo. (#398203, Owen Taylor)
2007-01-18  Matthias Clasen  <mclasen@redhat.com>

        * glib/gdate.c (g_date_set_time): Fix a typo.  (#398203,
        Owen Taylor)



svn path=/branches/glib-2-12/; revision=5298
2007-01-19 04:16:48 +00:00
Tor Lillqvist
761a1869ce config.h.win32.in glib/galloca.h glib/gbacktrace.h glib/gwin32.c
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* config.h.win32.in
	* glib/galloca.h
	* glib/gbacktrace.h
	* glib/gwin32.c
	* glibconfig.h.win32.in
	* README.win32: More minor tweaks for Digital Mars
	compiler. (#346808, Serhat Sevki Dincer)


svn path=/branches/glib-2-12/; revision=5293
2007-01-18 19:04:08 +00:00
Tor Lillqvist
1fca3b7545 makefile.mingw Remove from SVN. (#398069)
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* makefile.mingw
	* */makefile.mingw.in: Remove from SVN. (#398069)


svn path=/branches/glib-2-12/; revision=5292
2007-01-18 18:54:38 +00:00
Tor Lillqvist
f0de0fd9f4 DLLs are always installed in "bin" with current libtool, drop unnecessary
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* glib-zip.in: DLLs are always installed in "bin" with current
	libtool, drop unnecessary logic to check where they are. Include
	also the COPYING file.


svn path=/branches/glib-2-12/; revision=5288
2007-01-17 13:31:09 +00:00
Tor Lillqvist
40e8bbb1b0 Use <malloc.h> also with Digital Mars compiler on Win32. (#346808, Serhat
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* glib/galloca.h: Use <malloc.h> also with Digital Mars compiler
	on Win32. (#346808, Serhat Sevki Dincer)


svn path=/branches/glib-2-12/; revision=5286
2007-01-17 02:29:11 +00:00
Matthias Clasen
d841a9cc99 Bump version
svn path=/branches/glib-2-12/; revision=5284
2007-01-17 00:02:57 +00:00
Matthias Clasen
669f113cac 2.12.9
svn path=/branches/glib-2-12/; revision=5282
2007-01-16 23:55:51 +00:00
Matthias Clasen
c0a0e2f4eb Updates
svn path=/branches/glib-2-12/; revision=5281
2007-01-16 23:44:49 +00:00
Matthias Clasen
281d14029d Revert an accidental ABI break by moving gettime out of the
2007-01-16  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.h:
        * glib/gthread.c:
        * glib/glib.symbols: Revert an accidental ABI break by
        moving gettime out of the GThreadFunctions struct and making
        it a separate variable.  (#397139, Joe Marcus Clarke)

        * gthread/*.c: Adapt.



svn path=/branches/glib-2-12/; revision=5280
2007-01-16 21:27:49 +00:00
Tor Lillqvist
4c49bbeec1 glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of
2007-01-16  Tor Lillqvist  <tml@novell.com>

	* glib/gthread.c (gettime)
	* gthread/gthread-win32.c (g_gettime_win32_impl):
	GetSystemTimeAsFileTime() returns 100s of nanoseconds since 1601,
	so offset to Unix epoch (1970) and multiply by 100 to get
	nanoseconds which is what we want.


svn path=/branches/glib-2-12/; revision=5278
2007-01-16 14:00:37 +00:00
Tor Lillqvist
10f16a7bdb glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of
2007-01-16  Tor Lillqvist  <tml@novell.com>

	* glib/gthread.c (gettime)
	* gthread/gthread-win32.c (g_gettime_win32_impl):
	GetSystemTimeAsFileTime() returns 100s of nanoseconds, so multiply
	by 100 to get nanoseconds which is what we want.


svn path=/branches/glib-2-12/; revision=5273
2007-01-16 10:34:59 +00:00
Matthias Clasen
20c95ec82e Bump version
svn path=/branches/glib-2-12/; revision=5269
2007-01-15 04:46:47 +00:00
Matthias Clasen
ab1e585b56 2.12.8
svn path=/branches/glib-2-12/; revision=5267
2007-01-15 04:42:42 +00:00
Matthias Clasen
73a581c8ba Correct the gettime calculations once more. (#395203, Chris Wilson)
2005-01-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.c:
        * gthread/gthread-posix.c: Correct the gettime calculations
        once more.  (#395203, Chris Wilson)



svn path=/branches/glib-2-12/; revision=5263
2007-01-15 03:36:08 +00:00
Tor Lillqvist
b7899ae84a Simplify greatly. Instead of hardcoding a large switch statement, just ask
2007-01-15  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (g_win32_getlocale): Simplify greatly. Instead of
	hardcoding a large switch statement, just ask Windows for the
	ISO639 and ISO3166 codes. Tack on @Latn or @Cyrl for those
	languages which can alternatively be written in Latin or
	Cyrillic. Fixes #395419.


svn path=/branches/glib-2-12/; revision=5259
2007-01-15 02:15:12 +00:00
Matthias Clasen
0eeeed2800 Rework the handling of invalid keys/groups again. We are back to being
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Rework the handling of invalid
        keys/groups again. We are back to being liberal about
        what we accept, and only reject things that would lead
        to non-rereadable keyfiles.

        * tests/keyfile-test.c: Adapt tests.



svn path=/branches/glib-2-12/; revision=5255
2007-01-12 20:55:47 +00:00
Matthias Clasen
f6d2369fd0 Include windows.h and fix include order. (#394258, Kazuki Iwamoto)
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.c: Include windows.h and fix
        include order. (#394258, Kazuki Iwamoto)



svn path=/branches/glib-2-12/; revision=5250
2007-01-12 17:33:25 +00:00
Matthias Clasen
270190b698 Make G_GNUC_INTERNAL a no-op for gcc 2.95. (#329031, David Schleef, Marc
2007-01-12  Matthias Clasen  <mclasen@redhat.com>
          
        * configure.in: Make G_GNUC_INTERNAL a no-op for
        gcc 2.95.    (#329031, David Schleef, Marc Brockschmidt)
 

svn path=/branches/glib-2-12/; revision=5246
2007-01-12 15:32:38 +00:00
Matthias Clasen
8055038c9c fix timer calculations
svn path=/branches/glib-2-12/; revision=5243
2007-01-12 05:50:45 +00:00
Matthias Clasen
e655808480 Actually link gthread against librt. (#394641, Marco Pesenti Gritti)
2007-01-10  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Actually link gthread against librt.
        (#394641, Marco Pesenti Gritti)



svn path=/branches/glib-2-12/; revision=5242
2007-01-10 13:53:33 +00:00
Matthias Clasen
4a95d9b0b4 Grr, allow '*' in keys, too. (#394262)
2007-01-10  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_is_key_name): Grr, allow '*' in keys,
        too.  (#394262)



svn path=/branches/glib-2-12/; revision=5240
2007-01-10 13:48:13 +00:00
Matthias Clasen
731af51493 Don't use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is defined.
2007-01-08  Matthias Clasen  <mclasen@redhat.com>

        * gthread/gthread-posix.c (g_thread_impl_init): Don't
        use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is
        defined.  (#394150)



svn path=/branches/glib-2-12/; revision=5231
2007-01-08 13:00:16 +00:00
Matthias Clasen
7f8d4c1ced Use PKG_PROG_PKG_CONFIG. (#392636, Yevgen Muntyan)
2007-01-07  Matthias Clasen  <mclasen@redhat.com>

        * m4macros/glib-2.0.m4: Use PKG_PROG_PKG_CONFIG.  (#392636,
        Yevgen Muntyan)



svn path=/branches/glib-2-12/; revision=5226
2007-01-08 04:44:06 +00:00
Behdad Esfahbod
950f715c06 Fix tests on x86_64.
2007-01-04  Behdad Esfahbod  <behdad@gnome.org>

        * tests/bit-test.c (builtin_bit_nth_lsf1), (builtin_bit_nth_lsf2),
        (builtin_bit_nth_msf): Fix tests on x86_64.


svn path=/branches/glib-2-12/; revision=5217
2007-01-05 03:32:43 +00:00
Matthias Clasen
ee44560f35 Bump version
svn path=/branches/glib-2-12/; revision=5215
2007-01-04 23:25:53 +00:00
Matthias Clasen
10ad0a1c26 2.12.7
svn path=/branches/glib-2-12/; revision=5213
2007-01-04 23:12:11 +00:00
Behdad Esfahbod
5362abd937 Take double-width chars into consideration when computing width of a
2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/goption.c (_g_unichar_get_width), (_g_utf8_strwidth),
        (calculate_max_length), (print_entry), (print_help): Take 
        double-width chars into consideration when computing width of a
        string.  Also fix another bug in width computation. (#346955)


svn path=/branches/glib-2-12/; revision=5206
2007-01-03 23:17:21 +00:00
Behdad Esfahbod
1190cf3b44 Fix bug in g_bit_nth_lsf (#371631) and use __builtin_clzl for
2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutils.h: Fix bug in g_bit_nth_lsf (#371631) and use 
        __builtin_clzl for g_bit_storage if available (#371670).

        * tests/Makefile.am:
        * tests/bit-test.c: New test, to test g_bit_* operations against
        naive and builtin implementations.


svn path=/branches/glib-2-12/; revision=5201
2007-01-03 20:09:25 +00:00
Matthias Clasen
b3b2d31602 Avoid warnings from running libtool --config. (#391364, Loïc Minier)
2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Avoid warnings from running libtool --config.
        (#391364, Loïc Minier)



svn path=/branches/glib-2-12/; revision=5195
2007-01-02 14:00:20 +00:00
Matthias Clasen
3a2d8a3db7 Return an error if the uri is bad. (#391370, Maciej Piechotka)
2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbookmarkfile.c (g_bookmark_file_get_app_info):
        Return an error if the uri is bad. (#391370, Maciej Piechotka)



svn path=/branches/glib-2-12/; revision=5193
2007-01-02 13:55:43 +00:00
Michael Natterer
3abcde339a configure.in remove references to build/ until a proper decision has been
2007-01-02  Michael Natterer  <mitch@imendio.com>

	* configure.in
	* Makefile.am: remove references to build/ until a proper decision
	has been made what to do with it.


svn path=/branches/glib-2-12/; revision=5191
2007-01-02 13:24:13 +00:00
Matthias Clasen
7df1b30fb5 Silence autoconf warnings about datarootdir. (#391367, Loïc Minier)
2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * glib-gettextize.in: Silence autoconf warnings about
        datarootdir.  (#391367, Loïc Minier)



svn path=/branches/glib-2-12/; revision=5188
2007-01-02 06:00:45 +00:00
Matthias Clasen
b5b0b60454 Convert the recently added stricter keyfile syntax checks into critical
2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Convert the recently added stricter
        keyfile syntax checks into critical warnings, to help apps
        which do bad things with key files. Note that the
        stricter checks will remain in place for 2.14.  (#390532,
        Loïc Minier)

        * tests/keyfile-test.c: Adapt



svn path=/branches/glib-2-12/; revision=5187
2007-01-02 05:54:42 +00:00
Matthias Clasen
ee9e7c1547 Use AC_CACHE_CHECK for the nl_langinfo check. (#304517, Lőrinczy
2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Use AC_CACHE_CHECK for the nl_langinfo
        check.  (#304517, Lőrinczy Zsigmond)
2006-12-28 04:39:30 +00:00
Matthias Clasen
53ca52cebd Don't modify the current locale. (#389300)
2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * glib/gunicollate.c (g_utf8_collate_key): Don't modify
        the current locale.  (#389300)
2006-12-27 05:13:51 +00:00
Matthias Clasen
065cbcb55f Silently skip tests if we can't set LC_COLLATE to en_US. (#336438)
2006-12-24  Matthias Clasen  <mclasen@redhat.com>

        * tests/run-collate-tests.sh:
        * tests/unicode-collate.c: Silently skip tests if
        we can't set LC_COLLATE to en_US.  (#336438)
2006-12-24 21:45:39 +00:00
Matthias Clasen
16e8e6414b Bump version 2006-12-20 17:40:39 +00:00
Matthias Clasen
2091fde20b 2.16.6 2006-12-20 17:22:56 +00:00
Matthias Clasen
a2f39f1295 Updates 2006-12-20 16:37:21 +00:00
Matthias Clasen
89ed772997 Accept '/', '+' and '.' in key names, since gnome-vfs uses mime types as
2006-12-19  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_is_key_name): Accept
        '/', '+' and '.' in key names, since gnome-vfs uses
        mime types as keys in some cache.
2006-12-19 21:03:01 +00:00