summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstringview.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2025-11-17 17:58:34 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2025-11-18 15:07:47 +0100
commit4bc6aa5f52926fefca87a6154fbeda62dcec177b (patch)
tree9a79268d43d239d13bbea824090aec8853123d21 /src/corelib/text/qstringview.cpp
parent729d08d5222f580fd5ff3768f0a3d226103c5623 (diff)
Fix handling of non-BMP digits in milliseconds fields of times
The code to trim trailing zeros from z (or zz, but not zzz) format correctly checked for whether the text ended with the locale's zero, but incorrectly chop(1)ed to remove the zero, neglecting the possibility that the zero is longer. Noticed while checking where else we used QLocale::zeroDigit() possibly naively. Add Fulah-Adlam tests for milliseconds, which confirmed the problem does actually appear. Fix dropping of trailing zeros from millis. Pick-to: 6.10 6.8 6.5 Change-Id: Id080f082b2890a102809ba8d0f687d55ac082357 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qstringview.cpp')
0 files changed, 0 insertions, 0 deletions