diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-11 00:20:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-12 09:10:02 +0100 |
commit | 7a9ee7168f7700d10968bdaef58e3e52a54684c4 (patch) | |
tree | 0390a968526655f1297a46f74f7483c510aabb67 /linguistic | |
parent | f95720bbb781f4a39fd032c158a3865f5f770b75 (diff) |
using osl_getThreadTextEncoding is a disaster waiting to happen
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index 319cd9d56be8..075cb8833f8c 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -847,10 +847,10 @@ static void AddInternal( if (rDic.is()) { //! TL TODO: word iterator should be used to break up the text - static const char *pDefWordDelim = + static const char aDefWordDelim[] = "!\"#$%&'()*+,-./:;<=>?[]\\_^`{|}~\t \n"; - ByteString aDummy( pDefWordDelim ); - String aDelim( aDummy, osl_getThreadTextEncoding() ); + String aDelim = + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(aDefWordDelim)); aDelim.EraseAllChars( '.' ); String aToken; |