glib/glib
Ignacio Casal Quinteiro fb9df27776 Change message system to use fputs instead of write
By default g_log_default_handler always assumes that stdout
and stderr are file descriptors 1 and 2. On Win32 this isn't
always the case as the win32 API functions AttachConsole and
freopen can be used to dynamically attach GUI applications to
a console and the file descriptors of stderr and stdout will
become different than 1 and 2.

Fix it by using fputs with the FILE directly instead of
using the file descriptors.

https://bugzilla.gnome.org/show_bug.cgi?id=692085
2015-10-08 17:32:29 +02:00
..
deprecated Fix g_cond_timed_wait() timeout with !CLOCK_MONOTONIC 2014-10-10 06:41:55 -04:00
glib-mirroring-tab Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gnulib gnulib/vasprintf: handle unsigned modifier for long long 2015-02-03 11:48:18 -05:00
libcharset Updated FSF's address 2014-01-31 14:31:55 +01:00
pcre all: remove use of 'register' keyword 2014-06-28 13:07:52 -04:00
tests Update to Unicode 8.0 2015-10-04 10:24:06 -04:00
update-pcre Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
.gitignore update .gitignores 2011-06-12 16:17:30 -04:00
docs.c docs: misc spelling 2015-10-05 15:33:05 +02:00
galloca.h docs: Fix formatting of g_alloca documentation. 2014-06-28 13:43:23 -04:00
garray.c garray: initialize allocated size in g_byte_array_new_take() 2014-10-08 20:51:47 +02:00
garray.h GArray: Documentation cleanups 2014-02-01 20:46:29 -05:00
gasyncqueue.c Documentation fixups 2015-09-21 06:44:58 -04:00
gasyncqueue.h GAsyncQueue: Add some useful api 2015-06-29 08:20:26 -07:00
gasyncqueueprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gatomic.c gatomic: Add missing new line in API doc comment 2015-04-07 10:41:47 +02:00
gatomic.h Revert "gatomic: statically assert that our assumptions hold" 2014-07-23 09:28:23 -04:00
gbacktrace.c Docs: replace <literal> by ` 2014-02-06 08:07:16 -05:00
gbacktrace.h gbacktrace: fix G_BREAKPOINT on Darwin (OSX, iOS) 2015-07-09 10:39:42 -04:00
gbase64.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gbase64.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gbitlock.c threads: use FUTEX_WAIT_PRIVATE and FUTEX_WAKE_PRIVATE if possible 2015-03-12 21:01:36 -04:00
gbitlock.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gbookmarkfile.c gbookmarkfile: Cleaner error handling code to pacify static analysis 2014-06-12 13:25:06 -04:00
gbookmarkfile.h docs: Replace <structname> tags with back ticks 2014-05-31 19:22:15 +01:00
gbsearcharray.h Require C90 compliance 2013-11-20 09:16:16 -05:00
gbytes.c Skip g_bytes_new_with_free_func() in introspection 2015-10-01 21:15:22 -04:00
gbytes.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gcharset.c GI annotation for g_get_charset() 2015-02-08 16:06:17 +01:00
gcharset.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gcharsetprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gchecksum.c all: remove use of 'register' keyword 2014-06-28 13:07:52 -04:00
gchecksum.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gconstructor.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gconvert.c gconvert: mention that the g_convert len should be in bytes 2014-05-30 13:51:16 +02:00
gconvert.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gdataset.c Speed up g_dataset_id_dup_data 2015-09-12 11:13:45 -04:00
gdataset.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdatasetprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdate.c Fix a markup confusion 2015-06-05 11:54:40 -04:00
gdate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdatetime.c Fix a minor typo in a comment 2015-05-10 20:09:48 +02:00
gdatetime.h docs: Replace <structname> tags with back ticks 2014-05-31 19:22:15 +01:00
gdir.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gdir.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gen-unicode-tables.pl unicode: Switch compose_second_single to gunichar 2014-06-28 12:49:07 -04:00
genviron.c glib/genviron.c, GSubprocessLauncher: ain't no "filename encoding" 2015-06-05 14:53:34 -04:00
genviron.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gerror.c gerror: Add (optional) annotation to g_propagate_error() 2015-10-08 11:16:02 +01:00
gerror.h docs: Replace <structname> tags with back ticks 2014-05-31 19:22:15 +01:00
gfileutils.c gfileutils: Mark the return value from g_path_skip_root() as nullable 2015-03-03 17:59:50 +00:00
gfileutils.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
ggettext.c ggettext: Include an example of setlocale() and friends in the i18n docs 2015-01-15 14:22:25 +00:00
ggettext.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghash.c Add a note to the g_str_hash docs 2015-07-27 06:51:17 -04:00
ghash.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghmac.c hmac: Add support for SHA-512 in GHmac 2014-04-16 16:20:46 +01:00
ghmac.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghook.c Docs: Drop entities, switch away from sgml mode 2014-02-09 02:07:26 -05:00
ghook.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghostutils.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
ghostutils.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gi18n-lib.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gi18n.h Updated FSF's address 2014-01-31 14:31:55 +01:00
giochannel.c Convert remaining uses of 'Rename to:' 2015-03-12 16:55:22 -04:00
giochannel.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
giounix.c Updated FSF's address 2014-01-31 14:31:55 +01:00
giowin32.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gkeyfile.c gkeyfile: Remove dead code and unused string literals 2015-10-03 23:31:44 +01:00
gkeyfile.h Updated FSF's address 2014-01-31 14:31:55 +01:00
glib_probes.d Add some mainloop instrumentation 2013-11-23 00:22:09 -05:00
glib_trace.h Updated FSF's address 2014-01-31 14:31:55 +01:00
glib-autocleanups.h Move GStrv typedef to glib.h instead of gobject.h 2015-09-22 11:18:30 -04:00
glib-init.c Export glib_init via GLIB_PRIVATE_CALL 2015-10-07 23:39:29 -04:00
glib-init.h Export glib_init via GLIB_PRIVATE_CALL 2015-10-07 23:39:29 -04:00
glib-object.h gobject: add support for g_auto() and g_autoptr() 2015-01-30 16:52:36 +01:00
glib-private.c Maintain the struct order when initializing 2015-10-08 12:32:58 +01:00
glib-private.h Export glib_init via GLIB_PRIVATE_CALL 2015-10-07 23:39:29 -04:00
glib-unix.c Convert remaining uses of 'Rename to:' 2015-03-12 16:55:22 -04:00
glib-unix.h docs: Remove a few trailing <literal>s 2014-02-14 21:49:42 -05:00
glib.h glib: add support for g_auto() and g_autoptr() 2015-01-30 16:52:36 +01:00
glib.py Make gdb pretty-printers compatible with Python3 2013-12-18 07:22:16 +11:00
glib.rc.in Update the year in the *.rc.in files 2011-06-07 08:55:31 +08:00
glib.stp.in Add some mainloop instrumentation 2013-11-23 00:22:09 -05:00
glibconfig.h.win32.in Win32: Update Pre-configured Config Headers 2015-01-07 09:59:47 +08:00
glibintl.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
glist.c glist: Clarify that g_list_nth() is expensive 2015-03-03 18:40:33 +00:00
glist.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gmacros.h gmacros: Only set G_ANALYZER_ANALYZING to 1 when clang static analyzer is in use 2015-06-29 04:11:39 +08:00
gmain-internal.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gmain.c docs: Fix a typo finalised -> finalized 2015-08-21 16:46:33 -05:00
gmain.h gmain: Document return value of GSourceFuncs.dispatch 2015-08-02 17:37:12 +02:00
gmappedfile.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gmappedfile.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gmarkup.c Remove some unused code 2015-09-07 09:50:41 -04:00
gmarkup.h doc: various improvements 2014-05-09 18:47:42 +02:00
gmem.c Deprecate and drop support for memory vtables 2015-07-27 23:30:20 -04:00
gmem.h gmem: Fix a typo in the g_try_new0() documentation 2015-09-02 14:52:52 +01:00
gmessages.c Change message system to use fputs instead of write 2015-10-08 17:32:29 +02:00
gmessages.h Revert use of the system_header GCC pragma 2015-09-22 15:14:14 +01:00
gmirroringtable.h Bug 491554 – Update to Unicode 5.1.0 2008-04-08 02:59:05 +00:00
gnode.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gnode.h Updated FSF's address 2014-01-31 14:31:55 +01:00
goption.c GOptionContext: Don't crash without main group 2015-07-27 07:53:40 -04:00
goption.h goption: Mention type of G_OPTION_ARG_CALLBACK in documentation 2015-03-13 09:10:25 +00:00
gpattern.c all: remove use of 'register' keyword 2014-06-28 13:07:52 -04:00
gpattern.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gpoll.c gmain: don't pass the same fd to g_poll() multiple times 2014-10-29 17:19:20 -04:00
gpoll.h Minor documentation additions and corrections 2014-05-31 10:54:02 -04:00
gprimes.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gprimes.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gprintf.c glib: remove deprecated g_mem_is_system_malloc() check in gprintf.c 2015-08-07 09:49:50 -04:00
gprintf.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gprintfint.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gqsort.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gqsort.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gquark.c Move quark initialization to a constructor 2015-09-12 11:13:45 -04:00
gquark.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gqueue.c Simplify code that uses g_queue_insert_before() and insert_after() 2014-11-09 20:42:50 +01:00
gqueue.h docs: Use markdown links in all .c and .h files 2014-04-15 22:19:07 +02:00
grand.c grand: Only use rand_s() when targetting Visual Studio >= 2005 2014-09-15 22:25:08 +03:00
grand.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gregex.c regex: if PCRE is 8.34 or later, disable auto-possessification for DFA 2015-06-09 18:15:28 +01:00
gregex.h Minor documentation additions and corrections 2014-05-31 10:54:02 -04:00
gscanner.c Minor documentation additions and corrections 2014-05-31 10:54:02 -04:00
gscanner.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gscripttable.h Update to Unicode 8.0 2015-10-04 10:24:06 -04:00
gsequence.c Revert "list store: Fix a parameter check" 2015-09-23 18:55:28 -04:00
gsequence.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gshell.c doc: various improvements 2014-06-29 17:57:24 +02:00
gshell.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gslice.c Revert "Bug 724590 - GSlice slab_stack corruption" 2014-04-16 07:53:58 -04:00
gslice.h Use G_STMT_START/END in gslice.h 2015-01-14 16:21:00 +01:00
gslist.c glist: Mention that g_list_length() is bad for checking list emptiness 2015-02-11 09:17:33 +00:00
gslist.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gspawn-win32-helper.c win32: Replace usage of __wgetmainargs() 2015-07-23 04:22:59 -04:00
gspawn-win32.c Change W32 console detection to look at the window, not stdout 2014-08-05 06:44:01 +00:00
gspawn.c win32: Replace usage of __wgetmainargs() 2015-07-23 04:22:59 -04:00
gspawn.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gstdio.c Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gstdio.h Make sure GStatBuf is typedefed correctly 2015-04-05 11:09:22 +00:00
gstrfuncs.c gstrfuncs: Add missing annotations to g_[ascii_]strto*() functions 2015-10-08 11:10:39 +01:00
gstrfuncs.h Move GStrv typedef to glib.h instead of gobject.h 2015-09-22 11:18:30 -04:00
gstring.c GString: Avoid some repeated parameter checking 2015-09-07 10:35:13 -04:00
gstring.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gstringchunk.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gstringchunk.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtester-report Restore executability for other files 2014-01-31 09:36:52 -05:00
gtester.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gtestutils.c gtestutils: add g_assert_cmpmem() 2015-08-31 13:59:48 -04:00
gtestutils.h testutils: remove internal ABI comment 2015-10-05 15:32:41 +02:00
gthread-posix.c thread: Check sysconf value before using it 2015-05-28 21:54:52 -04:00
gthread-win32.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gthread.c gthread: Suggest using *_async() functions instead of threads 2015-08-19 11:38:55 +01:00
gthread.h gmem.h, gthread.h: Include glib/gutils.h 2015-02-10 23:17:07 +08:00
gthreadpool.c GThreadPool: Add some queue manipulation api 2015-06-29 08:20:26 -07:00
gthreadpool.h GThreadPool: Add some queue manipulation api 2015-06-29 08:20:26 -07:00
gthreadprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtimer.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gtimer.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtimezone.c Fix typos in gbytes_hash and g_time_zone_find_interval docs 2014-07-14 08:39:34 -04:00
gtimezone.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtranslit-data.h Add locale-sensitive ASCII transliteration API 2014-02-20 18:27:24 -05:00
gtranslit.c g_str_to_ascii(): a couple of minor tweaks 2014-02-20 18:32:42 -05:00
gtrashstack.c Docs: replace <literal> by ` 2014-02-06 08:07:16 -05:00
gtrashstack.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtree.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gtree.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtypes.h all: remove use of 'register' keyword 2014-06-28 13:07:52 -04:00
gunibreak.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gunibreak.h Update to Unicode 8.0 2015-10-04 10:24:06 -04:00
gunichartables.h Update to Unicode 8.0 2015-10-04 10:24:06 -04:00
gunicode.h Update to Unicode 8.0 2015-10-04 10:24:06 -04:00
gunicodeprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gunicollate.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gunicomp.h unicode: Update to unicode 7.0.0 2014-06-28 12:49:38 -04:00
gunidecomp.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gunidecomp.h Update to Unicode 8.0 2015-10-04 10:24:06 -04:00
guniprop.c Update to Unicode 8.0 2015-10-04 10:24:06 -04:00
gurifuncs.c Convert external links to markdown syntax 2014-02-05 21:23:28 -05:00
gurifuncs.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gutf8.c g_utf8_validate: fix a regression 2015-09-13 13:04:59 -04:00
gutils.c gutils: Clarify return values of g_bit_nth_[lsf|msf]() 2015-08-25 10:49:06 +01:00
gutils.h Avoid a false deprecation 2015-08-20 20:20:48 -04:00
gvariant-core.c docs: Remove <!-- --> comment before plural s 2014-04-24 13:42:37 +02:00
gvariant-core.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant-internal.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant-parser.c gvariant-parser: Clarify g_variant_parse() returns a non-floating ref 2015-04-22 00:02:06 +01:00
gvariant-serialiser.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant-serialiser.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant.c g_variant_get_child(): flatten-first logic on '&' 2015-09-29 10:17:28 -04:00
gvariant.h add GVariantDict 2014-02-04 11:56:06 +00:00
gvarianttype.c Convert GVariantType table to a list 2014-02-08 13:43:16 -05:00
gvarianttype.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvarianttypeinfo.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gvarianttypeinfo.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gversion.c Minor documentation additions and corrections 2014-05-31 10:54:02 -04:00
gversion.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gversionmacros.h glib: Add 2.48 availibity macros 2015-09-29 08:26:13 -04:00
gwakeup.c gwakeup: Clarify buffer sizing in g_wakeup_signal() 2014-06-21 17:41:31 +01:00
gwakeup.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gwin32.c gwin32.c: Avoid deprecated Win32 API usage 2015-10-07 20:46:31 +08:00
gwin32.h Win32: Move g_win32_check_windows_version() to the correct place in header 2015-03-12 16:09:14 -04:00
libglib-gdb.py.in Avoid shadowing dir builtin 2010-12-03 14:41:06 -05:00
Makefile.am Cleanup and Enhance the MSVC Project Generation 2015-09-03 19:10:06 +08:00
makefile.msc.in win32: Use timeGetTime as monotonic base 2011-11-16 09:10:46 +01:00
update-gtranslit.py Add locale-sensitive ASCII transliteration API 2014-02-20 18:27:24 -05:00
valgrind.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
win_iconv.c Silence a controversial warning in win_iconv 2014-08-02 12:38:39 +00:00