diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-10-14 05:05:18 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-10-14 05:05:18 (GMT) |
commit | 176698a91d3b2256a093785967c6706328981af4 (patch) | |
tree | 8c94a018b4e12a81b1b9ee4ae2e5853010435606 /src/declarative/qml/qmlscriptparser.cpp | |
parent | 513cc4be0bec4a5fb303062ecbecf87708dc0e9b (diff) | |
download | Qt-176698a91d3b2256a093785967c6706328981af4.zip Qt-176698a91d3b2256a093785967c6706328981af4.tar.gz Qt-176698a91d3b2256a093785967c6706328981af4.tar.bz2 |
Force QML files to be always UTF-8.
Ensure test works in all locales.
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r-- | src/declarative/qml/qmlscriptparser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp index 9cc12b3..6e5f315 100644 --- a/src/declarative/qml/qmlscriptparser.cpp +++ b/src/declarative/qml/qmlscriptparser.cpp @@ -870,6 +870,7 @@ bool QmlScriptParser::parse(const QByteArray &qmldata, const QUrl &url) const QString fileName = url.toString(); QTextStream stream(qmldata, QIODevice::ReadOnly); + stream.setCodec("UTF-8"); const QString code = stream.readAll(); data = new QmlScriptParserJsASTData(fileName); |