summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-texttable/main.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-10-17 18:42:24 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-12-07 05:16:23 +0000
commit5f775e671973b1549a48ae8c69c5db7494f6a6d3 (patch)
tree4e2471577ac925c3ab1301409067347759794c85 /src/gui/doc/snippets/textdocument-texttable/main.cpp
parent091793ccaa5b11d91252a15e8452d6544e4e3504 (diff)
Fix QStringConverter::encodingForName() for trailing `-`, `_`
The (internal) docs say that - and _ are ignored, and they're ignored everywhere, except as suffixes. If the old code only ignored them as infixes, fine, that would make some sense, but it ignored infixes and prefixes, so there's no reason for it to not ignore suffixes, too. Fix by continuing the loop until both input ranges are exhausted, or a mismatch was found. [ChangeLog][QtCore][QStringConverter] Fixed a bug where encodingForName() failed due to trailing characters (`_`, `-`) that ought to have been ignored. Pick-to: 6.6 6.5 Change-Id: Iec21489d988eda7d33c744c170f88cd665b73f34 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-texttable/main.cpp')
0 files changed, 0 insertions, 0 deletions