1. 20 Jun, 2018 1 commit
    • LRN's avatar
      W32: add std stream redirection envvar options · 460cc723
      LRN authored
      This commit adds two W32-only environmental variable checks:
      * G_WIN32_ALLOC_CONSOLE, if set to 1, will force glib to create
        a new console if the process has no console by itself.
        This option is for GUI apps that are launched from GUI
        processes, in which case there's no console anywhere near them.
      * G_WIN32_ATTACH_CONSOLE, if set to a comma-separated list of
        standard stream names (stdint, stdout, stderr), will reopen
        a given std stream and tie it to the console (using existing console
        or parent console).
        This works either with the other option (to create a console),
        or if the app is launched from a console process (often the
        case for developers).
        The redirection is done with freopen(), dup() and dup2().
        If everything goes well, C file descriptors 0, 1 or 2 will
        be bound to stdin, stdout and stderr respectively (only for
        streams listed in the envrionmental variable), and so will
        be stdio streams by the same names.
      
      With these it's possible to see the output of g_log*() functions
      when running GTK4 applications, which are linked as GUI applications,
      and thus do not get a console by default.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=790857
      
      Fixes issue #1304
      460cc723
  2. 16 May, 2018 1 commit
  3. 13 Jul, 2017 1 commit
    • LRN's avatar
      W32 - don't use gettext & gcov during gettext init · 75fa8c2a
      LRN authored
      Non-representable characters during UTF16->locale conversion
      will cause gcov code to return an error, for which it will try
      to use gettext, so that the error message is localized.
      
      If such call is made while gettext is being initialized
      (there's a g_once_init_enter up the stack), the thread will hang forever.
      
      To solve this, use W32 API to do the UTF16->locale conversion
      and don't use gettext when it returns an error.
      
      Also optimize g_win32_locale_filename_from_utf8() a bit,
      as we need more UTF16 and less UTF8 now.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=784579
      75fa8c2a
  4. 24 May, 2017 1 commit
    • Sébastien Wilmet's avatar
      glib/: LGPLv2+ -> LGPLv2.1+ · f9faac76
      Sébastien Wilmet authored
      All glib/*.{c,h} files have been processed, as well as gtester-report.
      
      12 of those files are not licensed under LGPL:
      
      	gbsearcharray.h
      	gconstructor.h
      	glibintl.h
      	gmirroringtable.h
      	gscripttable.h
      	gtranslit-data.h
      	gunibreak.h
      	gunichartables.h
      	gunicomp.h
      	gunidecomp.h
      	valgrind.h
      	win_iconv.c
      
      Some of them are generated files, some are licensed under a BSD-style
      license and win_iconv.c is in the public domain.
      
      Sub-directories inside glib/:
      
      	deprecated/: processed in a previous commit
      	glib-mirroring-tab/: already LGPLv2.1+
      	gnulib/: not modified, the code is copied from gnulib
      	libcharset/: a copy
      	pcre/: a copy
      	tests/: processed in a previous commit
      
      https://bugzilla.gnome.org/show_bug.cgi?id=776504
      f9faac76
  5. 06 Apr, 2017 1 commit
  6. 22 Nov, 2016 1 commit
  7. 15 Mar, 2016 4 commits
  8. 28 Jan, 2016 1 commit
    • Chun-wei Fan's avatar
      gwin32.c: Avoid a GCC warning · dfd74a27
      Chun-wei Fan authored
      Add a pair of braces to make things more clear, to avoid a warning
      when -Wparentheses is used.
      
      Reported by Ignacio Casel Quinteiro.
      dfd74a27
  9. 05 Jan, 2016 1 commit
  10. 27 Oct, 2015 1 commit
  11. 24 Oct, 2015 1 commit
    • Chun-wei Fan's avatar
      gwin32.c: Fix build on Visual Studio · 556705cb
      Chun-wei Fan authored
      ntdef.h is a header that is normally only shipped with MinGW, not Visual
      Studio, which broke the build in commit 975cb910.  Fix this by including
      winternl.h, which typedef's the NTSTATUS type in question on both Visual
      Studio and MinGW/mingw-w64, as well as pre-2008 Visual Studio.
      
      Clean up this inclusion part a little bit as well.
      556705cb
  12. 20 Oct, 2015 1 commit
  13. 07 Oct, 2015 1 commit
  14. 23 Jul, 2015 1 commit
  15. 27 Jan, 2015 1 commit
    • Chun-wei Fan's avatar
      gwin32: Add g_win32_check_windows_version() API · bcbf80c3
      Chun-wei Fan authored
      This adds a public API where one can use to see whether the running version
      of Windows where the code is run is at least the specified version, service
      pack level, and the type (non-server, server, any) of the running Windows
      OS.
      
      This API is done as:
      -GetVersion()/GetVersionEx() changed in the way they work since Windows 8.1
       [1][2], so a newer mechanism to check the version of the running Windows
       operating system is needed.  MSDN also states that GetVersion() might be
       further changed or removed after Windows 8.1.  This provides a wrapper for
       VerfyVersionInfo() as well in GLib for most cases, which was recommended
       in place of g_win32_get_windows_version() for more detailed Windows
       version checking.
      -Provides an OS-level functionality check, for those that we don't need to
       venture into GetProcAddress(), and also to determine system API behavior
       changes due to differences in OS versions.
      
      Also added a note for the g_win32_get_windows_version() API that since the
      behavior of GetVersion() which it uses, is changed since Windows 8.1, users
      of the API should be aware.
      
      [1]:
      http://msdn.microsoft.com/zh-tw/library/windows/desktop/ms724451%28v=vs.85%29.aspx
      [2]:
      http://msdn.microsoft.com/zh-tw/library/windows/desktop/ms724451%28v=vs.85%29.aspx
      
      https://bugzilla.gnome.org/show_bug.cgi?id=741895
      bcbf80c3
  16. 31 Jul, 2014 1 commit
  17. 30 Mar, 2014 1 commit
    • Dan Winship's avatar
      gio: move Winsock error mapping to g_io_error_from_win32_error() · 3da5d590
      Dan Winship authored
      Rather than having special code in gsocket.c, handle Winsock errors
      along with other Win32 errors in gioerror.c
      
      Also, reference g_win32_error_message() from the
      g_io_error_from_win32_error() docs, and update the
      g_win32_error_message() docs to clarify that it works with Winsock
      error codes too.
      3da5d590
  18. 20 Feb, 2014 1 commit
  19. 09 Feb, 2014 1 commit
    • Matthias Clasen's avatar
      Docs: Drop entities, switch away from sgml mode · 35066ed6
      Matthias Clasen authored
      Since all element markup is now gone from the doc comments,
      we can turn off the gtk-doc sgml mode, which means that from
      now on, docbook markup is no longer allowed in doc comments.
      
      To make this possible, we have to replace all remaining
      entities in doc comments by their replacement text, & -> &
      and so on.
      35066ed6
  20. 06 Feb, 2014 1 commit
  21. 31 Jan, 2014 1 commit
  22. 19 Jan, 2014 1 commit
  23. 18 Jan, 2014 1 commit
  24. 13 Dec, 2013 1 commit
  25. 31 Mar, 2012 1 commit
  26. 04 Oct, 2011 1 commit
  27. 09 Sep, 2011 1 commit
  28. 29 Aug, 2011 1 commit
    • Matthias Clasen's avatar
      Spelling fixes · 1b28408b
      Matthias Clasen authored
      Spelling fixes in comments and docs, provided by
      Kjartan Maraas in bug 657336.
      1b28408b
  29. 07 Jul, 2010 1 commit
  30. 28 Dec, 2009 1 commit
  31. 21 Jan, 2009 1 commit
  32. 09 Jan, 2009 2 commits
  33. 13 Sep, 2008 1 commit
    • Tor Lillqvist's avatar
      glib/gutils.h Deprecate G_WIN32_DLLMAIN_FOR_DLL_NAME(), · e55fca95
      Tor Lillqvist authored
      2008-09-13  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gutils.h
      	* glib/gwin32.h: Deprecate G_WIN32_DLLMAIN_FOR_DLL_NAME(),
      	g_win32_get_package_installation_directory() and
      	g_win32_get_package_installation_subdirectory() as their
      	documentation has warned for a while. Sorry that I forgot to do
      	this before 2.18.0.
      
      	* glib/gwin32.c (g_win32_get_package_installation_directory):
      	Print a warning if a non-NULL package parameter is passed to this
      	function, as that is deprecated usage, as the documentation says.
      
      
      svn path=/trunk/; revision=7480
      e55fca95
  34. 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
  35. 31 Mar, 2008 1 commit
  36. 25 Feb, 2008 1 commit