diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-06-27 15:50:03 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-06-27 15:50:03 -0300 |
commit | 25470abc2a1935a21fb26ab93a10ff9e17905400 (patch) | |
tree | bfb3b338bd8500489a966d215179045930ee63b7 | |
parent | 65de7c2573dfb3bf2e77cfc07ce790c83759d768 (diff) |
Fixes bug #901 - http://bugs.pyside.org/show_bug.cgi?id=901
The space optimization trick printed a sequence of invalid characters,
namely '\x', which are used to introduce a encoded character.
-rw-r--r-- | pyrcc/rcc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyrcc/rcc.cpp b/pyrcc/rcc.cpp index e65536c..2fe89f2 100644 --- a/pyrcc/rcc.cpp +++ b/pyrcc/rcc.cpp @@ -58,7 +58,7 @@ static bool qt_rcc_write_number(FILE *out, quint32 number, int width) while (dividend >= 1) { const quint8 tmp = number / dividend; - if (tmp >= 32 && tmp <= 127) { + if (tmp >= 32 && tmp < 127 && tmp != '"' && tmp != '\\') { /* Optimization for printable characters */ fprintf(out, "%c", tmp); } else { |