diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-06 18:31:24 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-06 18:31:24 +0100 |
commit | aaccd8560e555d7e3cf062ca3672b77702397a70 (patch) | |
tree | 7319af4a55aacf57b3a0c4ee23bba84438f1d84d /sal | |
parent | 5936a64c2aa275992ce231183b35711d8da74ace (diff) |
sal: it is impossible to have non-ASCII char here
...because rtl_ImplGetFastUTF8UnicodeLen has already checked that.
Change-Id: I17f2b80f374073934a8f0b1a97099d4dec89ce4e
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/ustring.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx index 1d30dcc49845..3e4f5c37e42b 100644 --- a/sal/rtl/ustring.cxx +++ b/sal/rtl/ustring.cxx @@ -696,10 +696,7 @@ retry: pBuffer = (*ppThis)->buffer; do { - /* Check ASCII range */ - SAL_WARN_IF( ((unsigned char)*pStr) > 127, "rtl.string", - "rtl_string2UString_status() - UTF8 test encoding is wrong" ); - + assert(((unsigned char)*pStr) <= 127); *pBuffer = *pStr; pBuffer++; pStr++; |