summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/codingconventions/myscript.js
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-03-29 09:58:40 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-03-29 10:30:11 (GMT)
commita8bf19019b3374eefaadb4e054d24089bc4fd5a4 (patch)
treeb39642a80c894edf1c4447c940c84a0052792a7c /doc/src/snippets/declarative/codingconventions/myscript.js
parentbfc04b22d3f80f43787e86ee4cc6a39436fa039c (diff)
downloadQt-a8bf19019b3374eefaadb4e054d24089bc4fd5a4.zip
Qt-a8bf19019b3374eefaadb4e054d24089bc4fd5a4.tar.gz
Qt-a8bf19019b3374eefaadb4e054d24089bc4fd5a4.tar.bz2
Make the QIconvCodec on Unix not enforce the Latin1 codec.
Originally, the QIconvCodec created and disposed of the iconv_t structure at every turn. In Qt 4.5, we started saving it for later in a thread-local storage. We had to introduce a fix to make sure that we didn't create the iconv_t structure before the setlocale(LC_ALL, "") call was made, though: otherwise, we'd keep forever an iconv_t that pointed to the wrong encoding. So now simply restore the Qt 4.4 behaviour: create and dispose of the iconv_t structure if we're called before the QCoreApplication constructor is run or after the static destructors are run. Note: this means QIconvCodec will probably default to US-ASCII when run before QCoreApplication, not Latin 1. Non-ASCII characters (anything with the high bit set) will fail to convert. Task-number: QTBUG-15229? Reviewed-by: Denis Dzyubenko
Diffstat (limited to 'doc/src/snippets/declarative/codingconventions/myscript.js')
0 files changed, 0 insertions, 0 deletions