1. 07 Jul, 2010 1 commit
  2. 16 Mar, 2010 1 commit
  3. 28 Oct, 2009 1 commit
    • Benjamin Otte's avatar
      Properly nul-terminate return values from g_convert() · 4288ad76
      Benjamin Otte authored
      The patch ensures that multibyte character sets are properly
      nul-terminated. This is an issue because the documentation claims to
      return a "nul-terminated" string and users of the API assume that means
      a proper nul-termination in the resulting character set.
      
      I looked at Pidgin and GStreamer code and found at least 3 cases where
      this was happening.
      
      This patch also reverts the documentation change from
      5a633f82 as that is now no longer
      necessary.
      4288ad76
  4. 27 Oct, 2009 1 commit
  5. 22 Aug, 2009 1 commit
  6. 27 Jul, 2008 1 commit
    • Tor Lillqvist's avatar
      glib/glib.symbols glib/gconvert.c glib/gdir.c glib/gfileutils.c · 80ecc308
      Tor Lillqvist authored
      2008-07-27  Tor Lillqvist  <tml@novell.com>
      
      	* glib/glib.symbols
      	* glib/gconvert.c
      	* glib/gdir.c
      	* glib/gfileutils.c
      	* glib/giowin32.c
      	* glib/gspawn-win32.c
      	* glib/gutils.c
      	* glib/gwin32.c: Bypass the Windows "ABI compatibility" symbols on
      	_WIN64. As there hasn't been any widely deployed 64-bit Windows
      	builds of the really old GLib (pre-2.8.1) versions those refer to,
      	there is no need to have the "ABI compatibility" versions in the
      	DLL.
      
      	* glib/makegalias.pl: Handle #ifndef _WIN64: Just output it, too.
      
      
      svn path=/trunk/; revision=7257
      80ecc308
  7. 16 Jun, 2008 1 commit
  8. 02 Apr, 2008 1 commit
    • Tor Lillqvist's avatar
      Bug 524314 - g_convert() on Win32 implicitly converts full width · a6bdf9a1
      Tor Lillqvist authored
      2008-04-02  Tor Lillqvist  <tml@novell.com>
      
      	Bug 524314 - g_convert() on Win32 implicitly converts full width
      	alphanumerics into half width
      	
      	* glib/win_iconv.c: Update from Yukihiro Nakadaira. Use
      	WC_NO_BEST_FIT_CHARS flag for WideCharToMultiByte() unless the
      	//translit flag was suffixed to the codeset name.
      
      	* glib/gconvert.c: Include win_iconv.c earlier so that its
      	definition of WINVER before it includes <windows.h> is used.
      
      
      svn path=/trunk/; revision=6808
      a6bdf9a1
  9. 21 Feb, 2008 1 commit
  10. 06 Feb, 2008 1 commit
  11. 28 Nov, 2007 1 commit
    • Matthias Clasen's avatar
      Fix up some doc comments, avoid C99 comments · 01f1f9ce
      Matthias Clasen authored
      2007-11-28  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gtestutils.c: Fix up some doc comments, avoid C99 comments
      
              * glib/gconvert.c: De-doc-commentify static functions to
              shut up gtk-doc.
      
              * glib/gutils.c: Fix the glib_gettext doc comment.
      
      
      svn path=/trunk/; revision=5982
      01f1f9ce
  12. 25 Nov, 2007 1 commit
    • Tor Lillqvist's avatar
      Implement #491549: On Windows, always use the native API for character set · 04aec5b2
      Tor Lillqvist authored
      2007-11-26  Tor Lillqvist  <tml@novell.com>
      
      	Implement #491549: On Windows, always use the native API for
      	character set conversions instead of GNU libiconv. Almost all
      	codesets supported by GNU libiconv exist as Windows codepages.
      	One missing feature is the "C99" and "JAVA" pseudo codesets, but I
      	doubt that is worth worrying about.
      	
      	* glib/win_iconv.c: New file. iconv() implementation for
      	Windows. Placed in the public domain by Yukihiro Nakadaira
      	<yukihiro.nakadaira@gmail.com>. From
      	http://yukihiro.nakadaira.googlepages.com/win_iconv.zip, his
      	2007-11-17 version.
      
      	* glib/gconvert.c: Include win_iconv.c on Windows.
      
      	* configure.in: Bypass iconv checks on Windows. 
      
      
      svn path=/trunk/; revision=5937
      04aec5b2
  13. 08 Nov, 2007 1 commit
  14. 27 Jan, 2007 1 commit
  15. 28 Dec, 2006 1 commit
  16. 27 Dec, 2006 2 commits
  17. 15 Dec, 2006 1 commit
  18. 26 Aug, 2006 1 commit
    • Matthias Clasen's avatar
      Fix the pthread compiler flag detection. · 8f05c1da
      Matthias Clasen authored
      2006-08-25  Matthias Clasen  <mclasen@redhat.com>
      
      	* configure.in: Fix the pthread compiler flag detection.
      
      	* glib/gunicode.h:
      	* glib/gutf8.c (_g_utf8_make_valid): Rename make_valid_utf8
      	from gconvert.c, move it to gutf8.c, and export it privately.
      
      	* glib/gconvert.c (g_filename_display_name): Adjust callers.
      
      	* glib/gkeyfile.c: Use _g_utf8_make_valid() in a number of
      	places to ensure error messages are valid UTF-8.  (#351853,
      	Simon Budig)
      8f05c1da
  19. 22 Jul, 2006 1 commit
  20. 10 May, 2006 1 commit
    • Sebastian Wilhelmi's avatar
      Renamed to glib/gthreadprivate.h and moved system thread identifier · e4f8f3b9
      Sebastian Wilhelmi authored
      
      2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>
      
      	* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
      	system thread identifier comparision and assignment macros from
      	glib/gthread.c to glib/gthreadprivate.h.
      
      	* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
      	glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
      	glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
      	glib/gthreadprivate.h instead of glib/gthreadinit.h.
      
      	* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
      	owner determination. This fixes #311043 and is mostly modeled
      	after the patch from jylefort@FreeBSD.org.
      e4f8f3b9
  21. 12 Apr, 2006 1 commit
  22. 04 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Move short_month_names and long_month_names to bss. · b58fb2bd
      Matthias Clasen authored
      2006-04-04  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gdate.c: Move short_month_names and long_month_names
              to bss.
      
              * glib/gspawn-win32.c (g_spawn_error_quark):
              * glib/gspawn.c (g_spawn_error_quark):
              * glib/gshell.c (g_shell_error_quark):
              * glib/gmarkup.c (g_markup_error_quark):
              * glib/goption.c (g_option_error_quark):
              * glib/gkeyfile.c (g_key_file_error_quark):
              * glib/giochannel.c (g_io_channel_error_quark):
              * glib/gfileutils.c (g_file_error_quark):
              * glib/gconvert.c (g_convert_error_quark):
              * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
              * glib/gthread.c (g_thread_error_quark): No point in making
              the error path fast by caching quarks.
      
              * glib/gbookmarkfile.c: Make the parser struct const.
      b58fb2bd
  23. 16 Jan, 2006 1 commit
    • Matthias Clasen's avatar
      Fix bug 326747, Alberto Ruiz: · 11a3e72c
      Matthias Clasen authored
      2006-01-16  Matthias Clasen  <mclasen@redhat.com>
      
      	Fix bug 326747, Alberto Ruiz:
      
      	* glib/gconvert.c (make_valid_utf8): Change this function to
      	replace unknown characters by the Unicode replacement character
      	instead of '?', and don't append "(invalid encoding)".
      	(g_filename_display_name, g_filename_display_basename): Document
      	how to determine if the filename was in an invalid encoding.
      11a3e72c
  24. 08 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Enable the endianness test. · 717f3d4a
      Matthias Clasen authored
      2005-08-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/convert-test.c: Enable the endianness test.
      
      	* glib/gconvert.c: Make the caching of iconv descriptors
      	optional.
      
      	* configure.in: Add an --enable-iconv-cache option, and
      	default to disabling iconv caching on new enough glibc.
      	Somebody with access to Solaris systems will need to test
      	if opening/closing of iconv descriptors is enough of
      	a performance problem to warrant the caching on that
      	platform. Note that the caching is causing correctness
      	problems in some corner cases, thus turning it off
      	is desirable unless it has severe performance implications.
      717f3d4a
  25. 02 Aug, 2005 3 commits
  26. 27 Apr, 2005 1 commit
    • Tor Lillqvist's avatar
      Don't call g_set_error() unless the GError pointer is non-NULL. This · dc11b437
      Tor Lillqvist authored
      2005-04-27  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gconvert.c (open_converter, g_convert_with_iconv): Don't
      	call g_set_error() unless the GError pointer is non-NULL. This
      	avoids infinite recursion problems in certain rare situations on
      	Windows, when g_locale_from_utf8() is called from
      	_glib_get_locale_dir() after the change below. It's the
      	_glib_gettext() calls to translate error messages that are
      	parameters to g_set_error() that cause the recursion, not
      	g_set_error() itself.
      
      	* glib/gwin32.c (g_win32_locale_filename_from_utf8): New
      	function. Converts a filename to the system codepage, and if a
      	straight conversion isn't possible (because the filename contains
      	characters not in the system codepage), try looking up the
      	filename (which should refer to an existing file for this to
      	succeed) with short (8.3) pathname components.
      
      	* glib/gutils.c (_glib_get_locale_dir): No need to cache the
      	result, this function is normally called only once. Return the
      	path to the locale directory in system codepage, not UTF-8. The
      	path is passed to bindtextdomain(), which doesn't use UTF-8 file
      	names. Use g_win32_locale_filename_from_utf8(). (#301772)
      
      	Don't do run-time lookup of message catalog directory on
      	Cygwin. Cygwin is supposed to look and feel like Unix, and on Unix
      	we use paths fixed at configure time.
      dc11b437
  27. 05 Apr, 2005 1 commit
  28. 14 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 608a31b9
      Matthias Clasen authored
      2005-03-13  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in galias.h:
      
      	* glib/glib.symbols: Group symbols by header and source file.
      	* glib/makegalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegalias.pl -def
      	* glib/Makefile.am (galiasdef.c): Add a rule to generate this
      	file.
      	* glib/*.c: Include galias.h after the other GLib headers,
      	include galiasdef.c at the bottom.
      608a31b9
  29. 17 Jan, 2005 1 commit
  30. 20 Dec, 2004 1 commit
    • Tor Lillqvist's avatar
      Improve docs. · 8693257c
      Tor Lillqvist authored
      2004-12-20  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gconvert.c (g_locale_to_utf8, g_filename_to_uri): Improve
      	docs.
      8693257c
  31. 15 Dec, 2004 2 commits
  32. 12 Dec, 2004 1 commit
  33. 10 Nov, 2004 1 commit
    • Tor Lillqvist's avatar
      Fix typo in doc comment. · 3eaeb13a
      Tor Lillqvist authored
      2004-11-10  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gconvert.c (g_get_filename_charsets): Fix typo in doc
      	comment.
      3eaeb13a
  34. 04 Nov, 2004 1 commit
    • Tor Lillqvist's avatar
      Document that the result is guaranteed to be non-NULL. · 912ba0d4
      Tor Lillqvist authored
      2004-11-04  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gconvert.c (g_filename_display_name): Document that the
      	result is guaranteed to be non-NULL.
      
      	* glib/gfileutils.c (get_contents_stdio, get_contents_regfile,
      	get_contents_posix, get_contents_win32, g_file_open_tmp,
      	g_file_read_link): Use g_filename_display_name() for error
      	messages.
      	(g_mkstemp): Document that the template should be in the GLib file
      	name encoding.
      	(g_file_open_tmp): Ditto. Also document that the actual name
      	returned is also in the GLib file name encoding.
      912ba0d4
  35. 02 Nov, 2004 2 commits