Remove custom text codec for C strings.
authorRobin Burchell <robin+qt@viroteck.net>
Mon, 30 Jan 2012 12:23:22 +0000 (14:23 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 22 Feb 2012 13:00:32 +0000 (14:00 +0100)
commit186692f81f2612c3cf3a4090cbf949f2fb1558f8
treee4506e520a88a1c75086516a1edeb1ab2fb4d057
parent9d173c92183c30144e8bd4f115b2cd93c3da0d40
Remove custom text codec for C strings.

This setting is extremely harmful, as code cannot know whether or not to expect
it. It also made the behaviour of QString::fromAscii and ::toAscii unintuitive,
and caused a lot of people to make mistakes with it.

Change-Id: I2f429fa7ef93bd75bb93a7f64c56db15b7283388
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
13 files changed:
dist/changes-5.0.0
src/corelib/codecs/qtextcodec.cpp
src/corelib/codecs/qtextcodec.h
src/corelib/kernel/qvariant.cpp
src/corelib/tools/qchar.cpp
src/corelib/tools/qchar.h
src/corelib/tools/qstring.cpp
src/corelib/tools/qstring.h
src/corelib/tools/qstringbuilder.cpp
src/corelib/tools/qstringbuilder.h
tests/auto/corelib/tools/qstring/tst_qstring.cpp
tests/auto/corelib/tools/qstringbuilder/qstringbuilder1/stringbuilder.cpp
tests/auto/other/collections/tst_collections.cpp