1. 07 Jan, 2019 2 commits
  2. 28 Dec, 2018 5 commits
  3. 26 Dec, 2018 4 commits
    • Vasily Galkin's avatar
      gspawn, win32: quoted args - escape end backslash · 22e875f7
      Vasily Galkin authored
      According to msdn documentation last backslash(es) of quoted argument
      in a win32 cmdline need to be escaped, since they are
      directly preceding quote in the resulting string:
      Glib <=2.58.0 passed children arguments like C:\Program Files\
      without escaping last backslash(es).
      So it had been passed as "C:\Program Files\"
      windows command line parsing treated this as escaped quote,
      and later text was treated as argument continuation instead of separate
      Existing implementation wasn't easily adoptable to fix this problem,
      so escaping logic was rewritten.
      Since the resulting length need to be increased due to extra escaping
      it was rewritten too. Now the calculated length assumes that all
      escapable chars would be escaped in a resulting string,
      so the length may be a bit bigger than actually needed,
      since backslashes not preceding quotes are not escaped.
      This fixes the glib/tests/spawn-singlethread.c test
      (which introduced testing for special chars to make this problem
      The problem itself was found during investigations about fixing
      related #1566
      The logic is duplicated in protect_argv_string() and protect_wargv() funcs.
      However there is no single obvious way to get rid of duplication -
      !419 (comment 371483)
      So by now adding a note referencing protect_wargv from protect_argv_string,
      the other direction is already referenced.
    • Vasily Galkin's avatar
      gspawn, win32: fix child stderr when coverage enabled · f7f597c8
      Vasily Galkin authored
      This fixes test that were added in previous commit:
      checking for empty stderr failed with coverage enabled, since
      coverage warnings printed from gspawn-win32-helper process were treated
      as child output. This is fixed by removing redirection after child
      finishes execution.
      The dup_noninherited renamed to reopen_noninherited,
      since it actually always closes passed file descriptor.
    • Vasily Galkin's avatar
      gspawn, win32: fix redirecting only stderr · cafb61a1
      Vasily Galkin authored
      Problem was just a typo - wrong variable was checked before enabling
      stderr redirection.
      This fixes error-only redirection spawn-test added in previous commit.
      Behavior while redirecting only stdout should be unaffected,
      since old code tried to redirect stderr to -1 in such case,
      which silently failed I think.
    • Vasily Galkin's avatar
      gspawn, tests: check passing special chars in args · 387739b0
      Vasily Galkin authored
      The existing singlethread g_spawn_sync test is modified and now tests
      that special characters in arguments are correctly passed to child.
      The test is added before spawn escaping fixing on win32
      and covers the case currently broken on win32:
      'trailing \ in argument containing space'.
  4. 21 Dec, 2018 2 commits
  5. 19 Dec, 2018 1 commit
  6. 18 Dec, 2018 7 commits
  7. 17 Dec, 2018 15 commits
  8. 16 Dec, 2018 1 commit
    • Mart Raudsepp's avatar
      gtimezone: Fallback to /etc/timezone on Gentoo · 2ceb48df
      Mart Raudsepp authored
      On non-systemd Gentoo systems the chosen timezone is expressed in
      /etc/timezone and /etc/localtime may be a copy of the timezone
      file instead of symlink. Add this path to the fallback test to
      not regress dates into UTC.
  9. 14 Dec, 2018 1 commit
  10. 12 Dec, 2018 2 commits