summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlocale_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qlocale_p.h')
-rw-r--r--src/corelib/tools/qlocale_p.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/corelib/tools/qlocale_p.h b/src/corelib/tools/qlocale_p.h
index f2e11499c8..a9c23aed61 100644
--- a/src/corelib/tools/qlocale_p.h
+++ b/src/corelib/tools/qlocale_p.h
@@ -408,9 +408,10 @@ inline char QLocaleData::digitToCLocale(QChar in) const
if (in == m_exponential || in == QChar::toUpper(m_exponential))
return 'e';
- // In several languages group() is the char 0xA0, which looks like a space.
- // People use a regular space instead of it and complain it doesn't work.
- if (m_group == 0xA0 && in.unicode() == ' ')
+ // In several languages group() is a non-breaking space (U+00A0) or its thin
+ // version (U+202f), which look like spaces. People (and thus some of our
+ // tests) use a regular space instead and complain if it doesn't work.
+ if ((m_group == 0xA0 || m_group == 0x202f) && in.unicode() == ' ')
return ',';
return 0;