hammock: +Workaround GDB vs. Python: +PYTHONCOERCECLOCALE=0
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 21 May 2017 20:23:04 +0000 (22:23 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 21 May 2017 20:23:04 +0000 (22:23 +0200)
bin/hammock

index d1de04f..b017312 100755 (executable)
@@ -413,6 +413,8 @@ while (@distrouse || keys(%child)) {
       # gdbgit: 16=6m5s 32=5m49s(seen OOM) 64=5m42s
       $c="export MAKEFLAGS=\"-j24\"; $c";
       $c="export http_proxy=http://127.0.0.1:3128/; $c";
+      # gdb compile failed, Python runtime initialized with LC_CTYPE=C (a locale with default ASCII encoding), which may cause Unicode compatibility problems. Using C.UTF-8, C.utf8, or UTF-8 (if available) as alternative Unicode-compatible locales is recommended.
+      $c="export PYTHONCOERCECLOCALE=0; $c";
       $c="set -ex; cd $builddir; $c";
       die "found ': $c" if $c=~/'/;
       spawn "mockrun $::distro '$c'";