[Commits] [wesnoth/wesnoth] a4172b: wmlunits: Fix issue where the process name becomes...
GitHub
noreply at github.com
Mon Aug 14 16:59:49 UTC 2017
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: a4172bddc10c1f4cf9997c575d8b07b576d3786a
https://github.com/wesnoth/wesnoth/commit/a4172bddc10c1f4cf9997c575d8b07b576d3786a
Author: Ignacio R. Morelle <shadowm at wesnoth.org>
Date: 2017-08-14 (Mon, 14 Aug 2017)
Changed paths:
M data/tools/wmlunits
Log Message:
-----------
wmlunits: Fix issue where the process name becomes "w" instead of "wmlunits"
The basic string type in Python 3 is equivalent to a wchar_t array,
which means that the second byte of every ASCII string is always zero,
causing the string to appear truncated after the first character when
calling C library functions that expect a single or multibyte encoding
(e.g. UTF-8). Just using a byte array does the trick to get a proper
single-byte ASCII string.
More information about the Commits
mailing list