GNOME Bugzilla – Bug 699434
Tinderbox crashes with UnicodeDecodeError on Fedora 19
Last modified: 2021-05-17 15:57:10 UTC
The tinderbox command crashes with UnicodeDecodeError on Fedora 19 (Schrödinger’s Cat). Here is a traceback: % jhbuild tinderbox -o ~/log Traceback (most recent call last):
+ Trace 231887
jhbuild.main.main(sys.argv[1:])
rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
return cmd.execute(config, args, help)
return self.run(config, options, args, help)
return build.build()
self.start_build()
'charset': self.charset })
return self.writer.write(data)
data, consumed = self.encode(object, self.errors)
The code name, "Schrödinger’s Cat", may cause this error. It has a non-ascii character "ö" (UTF-8: 0xC3 0xB6). [JHBuild Version] e019ec0 (Wed May 1 16:13:50 2013 +0100) of the master branch on the git.gnome.org/jhbuild. [Other Info] % cat /etc/issue Fedora release 19 (Schrödinger’s Cat) Kernel \r on an \m (\l) % python --version Python 2.7.4
Created attachment 250590 [details] [review] Decode lsb_release output using preferred encoding lsb_release may output non-ascii characters. For example, it prints "Schrödinger’sCat" for the codename of Fedora 19. It caused jhbuild to crash with UnicodeDecodeError in writing a tinderbox log. Could you please review the patch?
Review of attachment 250590 [details] [review]: Looks OK.
Review of attachment 250590 [details] [review]: Committed: https://git.gnome.org/browse/jhbuild/commit/?id=b820daf5dcadc826d489cdcd060fc7f69917910c
Created attachment 252110 [details] [review] Decode release file using preferred encoding Reopening this as my newly installed Fedora 19 machine does not have the lsb_release tool installed, leading to another UnicodeDecodeError in start_build:
+ Trace 232394
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/jhbuild/-/issues/169.