diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2018-12-03 11:47:04 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2018-12-06 19:13:35 +0000 |
commit | 4da0c669d3b942003d6d6b88b8cebcf5d8df1967 (patch) | |
tree | a9ad5f937898e322060e4b8cd8418c834e44c2e2 /src/corelib/codecs/qtextcodec.cpp | |
parent | 7c7e007794fb6dc34c7c816732d2ba0a911e488c (diff) |
QTextCodec::codecForLocale(): clarify and update documentation
Change-Id: If3eec8cfc90cadcbd418807891ccf19b796f4006
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/codecs/qtextcodec.cpp')
-rw-r--r-- | src/corelib/codecs/qtextcodec.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/corelib/codecs/qtextcodec.cpp b/src/corelib/codecs/qtextcodec.cpp index 3fc199c0a1..804e0b2935 100644 --- a/src/corelib/codecs/qtextcodec.cpp +++ b/src/corelib/codecs/qtextcodec.cpp @@ -695,11 +695,9 @@ void QTextCodec::setCodecForLocale(QTextCodec *c) \threadsafe Returns a pointer to the codec most suitable for this locale. - On Windows, the codec will be based on a system locale. On Unix - systems, the codec will might fall back to using the \e iconv - library if no builtin codec for the locale can be found. - - Note that in these cases the codec's name will be "System". + The codec will be retrieved from ICU where that backend is in use, otherwise + it may be obtained from an OS-specific API. In the latter case, the codec's + name may be "System". */ QTextCodec* QTextCodec::codecForLocale() |