1. 16 Sep, 2004 1 commit
  2. 14 Mar, 2004 1 commit
    • Owen Taylor's avatar
      Some warning fixes for the Sun compiler (Reported by David L. Cooper II, · 0b6eeb2e
      Owen Taylor authored
      Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>
      
              Some warning fixes for the Sun compiler (Reported by
              David L. Cooper II, #136401)
      
              * glib/giochannel.c (g_io_channel_read): Return
              G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
              function returns a GIOError.
      
              * glib/guniprop.c: Fix some guchar/gchar confusion
              with special_case_table.
      0b6eeb2e
  3. 25 Jul, 2003 1 commit
  4. 01 Jun, 2003 1 commit
  5. 31 May, 2003 1 commit
  6. 30 May, 2003 2 commits
  7. 19 Mar, 2003 1 commit
    • Matthias Clasen's avatar
      Fix docs. · f86a5fad
      Matthias Clasen authored
      2003-03-19  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/giochannel.c (g_io_channel_read_to_end): Fix docs.
      f86a5fad
  8. 05 Jan, 2003 1 commit
  9. 04 Dec, 2002 1 commit
  10. 28 Nov, 2002 1 commit
    • Matthias Clasen's avatar
      Move some docs inline, and add deprecation information. To see the list of · 803bae66
      Matthias Clasen authored
      	* glib/gutils.c:
      	* glib/gtree.c:
      	* glib/gstring.c:
      	* glib/gstrfuncs.c:
      	* glib/giochannel.c: Move some docs inline, and add deprecation
      	information. To see the list of affected functions, grep for
      	"Deprecated:".
      
      	* glib/tmpl/strings.sgml:
      	* glib/tmpl/string_utils.sgml:
      	* glib/tmpl/misc_utils.sgml: Move some docs inline.
      803bae66
  11. 02 Nov, 2002 1 commit
  12. 18 Oct, 2002 1 commit
  13. 26 Jul, 2002 1 commit
    • Owen Taylor's avatar
      Fix docs for @str_return to conform to the main docs and the · 289ad03a
      Owen Taylor authored
      Thu Jul 25 20:57:20 2002  Owen Taylor  <otaylor@redhat.com>
      
              * glib/giochannel.c (g_io_channel_read_line): Fix
              docs for @str_return to conform to the main docs
              and the implementation as to whether the terminator
              is included. (#87964, Jacob Berkman)
      289ad03a
  14. 25 Jul, 2002 2 commits
  15. 20 May, 2002 1 commit
    • Owen Taylor's avatar
      Fix double close of file descriptor on error. (#82139, Wayne Schuller) · 81ad1bb2
      Owen Taylor authored
      Mon May 20 15:35:59 2002  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gfileutils.c (get_contents_regfile): Fix double
              close of file descriptor on error. (#82139, Wayne Schuller)
      
              * glib/gspawn.c (close_and_invalidate): Don't close
              fd's that have already been closed. (Fix from Michael
              Meeks, #81959)
      
              * glib/giochannel.c (g_io_channel_close): If not flushing,
              dump the contents of the write buffers, so we won't try
              to write them to an invalid fd later. (Patch from Ron Steinke,
              fixing #78290, Andreas Persenius.)
      81ad1bb2
  16. 14 Mar, 2002 1 commit
  17. 08 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Final updates for 2.0.0 · cef5d28c
      Owen Taylor authored
      Fri Mar  8 10:20:46 2002  Owen Taylor  <otaylor@redhat.com>
      
              * NEWS: Final updates for 2.0.0
      
              * glib/gstrfuncs.c: Convert the results of strerror()
              and strsignal() to UTF-8.
      
              * glib/gconvert.c glib/gdir.c glib/giochannel.c glib/giounix.c
              glib/giowin32.c: Use g_strerror(), not strerror().
      cef5d28c
  18. 15 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Updated. · 5d43b9ad
      Owen Taylor authored
      Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
      
              * NEWS: Updated.
      
              * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
              (#71410, Sven Neumann)
      
              * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
              Change offset type for g_io_channel_seek[_position] to
              gint64.
      5d43b9ad
  19. 28 Jan, 2002 1 commit
  20. 13 Dec, 2001 1 commit
    • Matthias Clasen's avatar
      Revert mistaken change: it is UNIX, not Unix. · a3d7806b
      Matthias Clasen authored
              * glib/tmpl/completion.sgml, glib/tmpl/date.sgml,
              glib/tmpl/fileutils.sgml, glib/tmpl/iochannels.sgml,
              glib/tmpl/macros.sgml, glib/tmpl/memory.sgml,
              glib/tmpl/misc_utils.sgml, glib/tmpl/warnings.sgml,
              glib/tmpl/windows.sgml: Revert mistaken change: it is UNIX, not Unix.
      
              * glib/tmpl/memory_chunks.sgml,
              glib/tmpl/date.sgml, glib/tmpl/threads.sgml,
              glib/tmpl/gtype.sgml: Trivial markup fixes.
      
              * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
              glib/gwin32.c: Revert mistaken change: it is UNIX, not Unix.
      a3d7806b
  21. 15 Nov, 2001 1 commit
    • Matthias Clasen's avatar
      Documentation fixes. · 50c25041
      Matthias Clasen authored
              * glib/giochannel.c: Documentation fixes.
      
              * glib/tmpl/iochannels.sgml: Document GIOFlags, fix typos.
      
              * glib/tmpl/conversions.sgml, glib/tmpl/unicode.sgml,
              glib/tmpl/spawn.sgml, glib/tmpl/fileutils.sgml,
              glib/tmpl/shell.sgml, glib/tmpl/windows.sgml: Add
              some missing short and long descriptions.
      50c25041
  22. 02 Oct, 2001 1 commit
  23. 27 Sep, 2001 1 commit
    • Bruno Haible's avatar
      When the sublangid is SUBLANG_DEFAULT, return the locale of the language's · 34462896
      Bruno Haible authored
      2001-09-24  Bruno Haible  <haible@clisp.cons.org>
      
      	* glib/gwin32.c (g_win32_getlocale): When the sublangid is
      	SUBLANG_DEFAULT, return the locale of the language's main country,
      	not a country-neutral locale. E.g. "en_US" instead of "en". Add
      	handling of LANG_SORBIAN. Fix typo for SUBLANG_CHINESE_SIMPLIFIED
      	(China == CN, CH == Switzerland). Ignore empty environment
      	variable values.
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/makefile.{mingw,msc}.in: Add localcharset.o. Just copy the
      	source file from libcharset and compile in this directory.
      
      	* glib/giochannel.c: Mark rest of g_set_error strings for
      	translation, too.
      
      	* glib/giowin32.c: Add some debugging output functions, call them
      	when debugging.
      	(create_events, g_io_win32_msg_write): Free message fetched with
      	g_win32_error_message ().
      	(g_io_win32_check): Indentation fixes.
      	(g_io_win32_fd_read,g_io_win32_sock_read): Don't always return
      	G_IO_STATUS_NORMAL. Do return G_IO_STATUS_EOF if we got 0 bytes,
      	like on Unix. This helps making the test programs run
      	successfully.
      
      	* glib/gmain.c (g_poll): Return the code ifdeffed out with
      	TEST_WITHOUT_THIS. Can't remember why it was ifdeffed out. Things
      	seem to work as previously with the code in place. Especially
      	spawn-test didn't work with the code ifdeffed out (Bug#61067).
      
      	* glib/grand.c (g_rand_new): Don't try to use /dev/urandom unless
      	on Unix.
      
      	* glib/gspawn-win32-helper.c (WinMain): Remove Sleep(10000)
      	accidentally left in.
      
      gthread:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* gthread-win32.c: Use an extra level of indirection for GMutex.
      	It is now a pointer either to a pointer to a CRITICAL_SECTION
      	struct, or to a mutex HANDLE. This is needed in case the user
      	defines G_ERRORCHECK_MUTEXES. G_MUTEX_SIZE must correctly reflect
      	the size of *GMutex, but this used to vary depending on whether we
      	at run-time chose to use CRITICAL_SECTIONs or mutexes.
      	(g_mutex_free_win32_cs_impl, g_cond_free_win32_impl): Call
      	DeleteCriticalSection() when done with it.
      
      	* gthread-impl.c (g_thread_init_with_errorcheck_mutexes): Call
      	g_thread_impl_init() before accessing
      	g_thread_functions_for_glib_use_default, as the
      	g_thread_impl_init() function might modify it.
      
      po:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* POTFILES.in: Add iochannel.c and giowin32.c.
      
      	* sv.po: Remove a bogus fuzziness indicator.
      34462896
  24. 19 Sep, 2001 1 commit
  25. 18 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Fixes for compilation on Solaris (#59026, Frank Belew) · a9b48f33
      Owen Taylor authored
      Tue Sep 18 18:23:02 2001  Owen Taylor  <otaylor@redhat.com>
      
              Fixes for compilation on Solaris (#59026, Frank Belew)
      
              * glib/gqsort.c (g_qsort_with_data): Use g_alloca().
      
              * glib/giochannel.c (g_io_channel_read_to_end): Fix use
              of ternary on left-hand-side.
      
              * configure.in: Handle the ac_cv_working_alloca_h variable
              set by autoconf-2.5x.
      
      Tue Sep 11 18:50:44 2001  Owen Taylor  <otaylor@redhat.com>
      
              * m4macros/glib-gettext.m4 acinclude.m4: Remove commented
              out sections for clarity.
      a9b48f33
  26. 10 Sep, 2001 1 commit
    • Ron Steinke's avatar
      Modified Files: glib/ChangeLog glib/glib/giochannel.h · d5485ef3
      Ron Steinke authored
      Modified Files:
      	glib/ChangeLog glib/glib/giochannel.h glib/glib/giochannel.c
      
      	* glib/giochannel.h glib/giochannel.c: Added a length argument
      	to g_io_channel_[set,get]_line_term(), allowing embeded nulls
      	and binary safe line termination strings
      
      	* glib/giochannel.c: Got rid of a compile warning in
      	g_io_channel_write_chars()
      d5485ef3
  27. 24 Aug, 2001 1 commit
    • Ron Steinke's avatar
      Modified Files: glib/ChangeLog glib/glib/giochannel.c · 7a90af4d
      Ron Steinke authored
      Modified Files:
      	glib/ChangeLog glib/glib/giochannel.c
      
              * glib/giochannel.c: Matthias Clasen's fix for
              the buffer corruption bug by setting outbuf _after_
              the call to g_string_set_size()
      
              * glib/giochannel.c: kept the buffers from perpetually
              growing by subtracting 1 from allocated_len in the calculation
              of available space to account for the null at the end of the
              buffer
      
              * glib/giochannel.c: fixed g_io_channel_write_chars()
              to not write more than space_in_buf bytes for the UTF-8 case
      7a90af4d
  28. 16 Aug, 2001 1 commit
    • Ron Steinke's avatar
      Modified Files: glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c · e7931deb
      Ron Steinke authored
      Modified Files:
      	glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c
      	glib/glib/giochannel.h glib/glib/glib.def
      	glib/docs/reference/ChangeLog
      	glib/docs/reference/glib/glib-sections.txt
      
      	* glib/giochannel.c glib/glib.def glib/giochannel.h: Added
      	new functions g_io_channel_[set,get]_close_on_unref ()
      
      	* glib/giochannel.c: glib/giochannel.h: Documentation fixes
      
      	* glib/giochannel.c: Fixed g_io_channel_write_chars ()
      	so that bytes_written is always set to an appropriate
      	value when it returns
      
      	* glib/giounix.c: changed g_io_channel_get_flags () to
      	set the is_readable and is_writeable flags cached
      	by the channel
      
      	* docs/reference/glib/glib-sections.txt: Added
      	declarations for g_io_channel_[set,get]_close_on_unref
      e7931deb
  29. 12 Aug, 2001 1 commit
  30. 10 Aug, 2001 1 commit
    • Ron Steinke's avatar
      Modified Files: glib/ChangeLog glib/glib/giochannel.c · 6132f049
      Ron Steinke authored
      Modified Files:
      	glib/ChangeLog glib/glib/giochannel.c
      
              * glib/giochannel.c: Fixed a "sense of comparison" bug,
              added an assert to check when g_io_channels_read_chars ()
              is looping endlessly due to encoded_read_buf being corrupted.
      6132f049
  31. 05 Aug, 2001 2 commits
    • Ron Steinke's avatar
      Modified Files: glib/ChangeLog glib/glib/giochannel.h · ec759772
      Ron Steinke authored
      Modified Files:
      	glib/ChangeLog glib/glib/giochannel.h glib/glib/giochannel.c
      	glib/glib/glib.def glib/docs/reference/glib/glib-sections.txt
      
              * glib/giochannel.c glib/giochannel.c glib/glib.def
              docs/reference/glib/glib-sections.txt: Added new functions
              g_io_channel_[read,write]_unichar ()
      
              * glib/giochannel.h: Finally remembered to remove the
              old error message G_IO_CHANNEL_ERROR_PCHAR_FLUSH
      
              * glib/giochannel.c: Some fixes to g_io_channel_fill_buffer ()
              and g_io_channel_write_chars ()
      ec759772
    • Ron Steinke's avatar
      Modified Files: glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c · 4cfd423a
      Ron Steinke authored
      Modified Files:
      	glib/ChangeLog glib/glib/giochannel.c glib/glib/giounix.c
      
              * glib/giochannel.c: Replaced the local use_buf variable with a macro
              in most places. This allows us to check some things without worrying
              whether we have allocated the read buffers yet, and allows us to allocate
              the buffers later in some cases.
      
              * glib/giochannel.c: Introduced a MAX_CHAR_SIZE macro, which is
              supposed to be greater than or equal to the length in bytes
              of the longest character in any encoding. This is necessary
              to get the minimum buffer size for successful writing.
      
              * glib/giochannel.c: Fixed g_io_channel_set_encoding () so
              that it just prints a warning if partial_write_buf isn't
              empty instead of failing.
      
              * glib/giochannel.c: Fixed several functions so they can accept
              NULL parameters for pointers to return values.
      
              * glib/giochannel.c: Altered the error handling for
              g_io_channel_read_chars () to only return an error if
              it doesn't have any buffered data.
      
              * glib/giochannel.c: Rewrote g_io_channel_write_chars ()
              to fix the error handling and remove duplicate sections
              of code.
      
              * glib/giounix.c: Fixed g_io_channel_new_file () to
              call fstat () to set the is_seekable flag, in case someone
              uses it on a FIFO.
      4cfd423a
  32. 03 Aug, 2001 2 commits
    • Ron Steinke's avatar
      Modified Files: glib/ChangeLog glib/glib/giochannel.c · 1ff027aa
      Ron Steinke authored
      Modified Files:
      	glib/ChangeLog glib/glib/giochannel.c
      	glib/tests/iochannel-test.c
      
              * glib/giochannel.c: Fixed g_io_channel_seek_position()
              so that G_SEEK_CUR can be used with UTF-8 encoding
      
              * glib/giochannel.c: Changed test to decide whether
              use_buf is encoded_read_buf or read_buf from
              "if (channel->do_encode)" to "if (channel->encoding)" to
              fix bug 58472
      
              * tests/iochannel-test.c: Fixed so it doesn't output
              double newlines
      
              * glib/giochannel.c: Fixed g_io_channel_fill_buffer()
              so that encoded_read_buf is created for UTF-8 encoding
      1ff027aa
    • Darin Adler's avatar
      Improve strfunc test to test the split function in a way that demonstrates · 669974f6
      Darin Adler authored
      	* tests/.cvsignore:
      	* tests/strfunc-test.c: (strv_check), (main):
      	Improve strfunc test to test the split function in a way that
      	demonstrates its idiosyncrasies.
      669974f6
  33. 29 Jul, 2001 1 commit
  34. 23 Jul, 2001 1 commit
    • Ron Steinke's avatar
      fixed g_io_channel_seek_position() so that G_SEEK_CUR works for UTF-8 · d403f5f2
      Ron Steinke authored
      
              * glib/giochannel.c: fixed g_io_channel_seek_position() so that
              G_SEEK_CUR works for UTF-8 channel encoding, and unallocated
              converters are not flushed after the seek; fixed
              g_io_channel_get_buffer_condition() so that G_IO_IN is only
              set if the read buffer contains at least one full character
      d403f5f2
  35. 22 Jul, 2001 1 commit
    • Hans Breuer's avatar
      make the code actually have an effect (Use |= to set bits). Not absolutely · 371fe042
      Hans Breuer authored
      2001-07-22  Hans Breuer  <hans@breuer.org>
      
      	* glib/giochannel.c (g_io_channel_get_buffer_condition) : make
      	the code actually have an effect (Use |= to set bits). Not
      	absolutely sure if is the right one.
      
      	* glib/giowin32.c (g_io_win32_<check|prepare>) : don't modify
      	watch->condition but restored the previous behaviour.
      	Now gio-test as well as The Gimp work again ...
      371fe042
  36. 20 Jul, 2001 1 commit
    • Ron Steinke's avatar
      Modified Files: glib/ChangeLog glib/glib.def glib/glib/giochannel.c · e070fdea
      Ron Steinke authored
           Modified Files:
       	glib/ChangeLog glib/glib.def glib/glib/giochannel.c
       	glib/glib/giochannel.h glib/glib/giounix.c
       	glib/glib/giowin32.c
       	glib/docs/reference/glib/glib-sections.txt
       	glib/tests/iochannel-test.c glib/tests/unicode-collate.c
       	glib/tests/unicode-normalize.c
           Added Files:
       	glib/tests/iochannel-test-infile
      
              * glib/giochannel.c: API changes, fixes to
              error handling, some internal restructuring
              * glib/giochannel.h: API changes, documentation for
              elements in GIOChannel structure
              * glib/giounix.c: Matched API changes, implemented
              backend to set is_readable, is_writeable, is_seekable
              flags, added a test to catch large values of count
              for which the behavior of write() is undefined
              * glib/giowin32.c: Changed to match new prototypes for
              io_close() and io_seek(), removed references to
              G_IO_STATUS_INTR, set is_seekable flag in channel
        ...
      e070fdea