Deprecate the ability to change the FS encoding separate from the locale
authorThiago Macieira <thiago.macieira@intel.com>
Mon, 14 May 2012 13:43:57 +0000 (15:43 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 15 May 2012 02:57:29 +0000 (04:57 +0200)
commit57c755fef00c8269b083817228f046e4d950a580
tree1d1ecdc34e6461754c41549ff5dd5e56ebc93ed7
parente5f77fe31be0ea2c891eacd3e866bb9db4e0a238
Deprecate the ability to change the FS encoding separate from the locale

Changing the encoding used by filenames separately from the locale
encoding is a broken concept and cannot work properly. This creates
ambiguity depending on the data source and how it's being treated.

Instead, enforce that the locale encoding is the only possibility to
deal with file names.

The QFile::encodeName and decodeName functions are retained due to the
Mac-specific issues and due to the sheer number of current
uses. There's no point in deprecating them and moving away from them.

Change-Id: Iedb2d8715d166a59a824f05bc11d107fd44f9c17
Discussed-on: http://lists.qt-project.org/pipermail/development/2012-May/003782.html
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
dist/changes-5.0.0
src/corelib/io/qfile.cpp
src/corelib/io/qfile.h
src/corelib/io/qfile_p.h