OSDN Git Service

try to sort out the filename encoding mess
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Tue, 8 Jun 2010 15:49:09 +0000 (17:49 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Wed, 9 Jun 2010 09:46:10 +0000 (11:46 +0200)
commit1dc99e8ff38c31fab948c5c57f47a492961841f2
treeba0019e4069cbacdb67e5f2e62c831a31db58522
parent6a6e0091c8dc143de5ca4a53ee7b81caaf5df6bf
try to sort out the filename encoding mess

use local8bit instead of latin1 resp. 8bit-passthrough, after all.

the situation was as follows:
- if the pro files and file names were all ascii, everything just worked
- if either contained non-ascii:
  - on unix, the evaluator would work as long as the file content
    encoding matched the file name encoding, and the ui would work as
    long as the file name encoding was latin1 (i.e., on no modern
    system)
  - on windows, both would work only if the ansi code page was
    latin1/cp1252 (i.e., on western systems)

i.e., even in the low-level evaluator, only native latin1 systems with
actual latin1 files worked consistently. given this situation, it makes
little sense to make an encoding adapter between the evaluator and the
ui as originally planned. instead, take the easy way out and use
local8bit - this continues to work for native latin1 systems+files in
the backend, and makes the ui work for everything the backend groks and
some more.

Reviewed-by: dt
Task-number: QTCREATORBUG-930
src/shared/proparser/ioutils.cpp
src/shared/proparser/profileevaluator.cpp