diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2012-09-30 16:33:47 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-09-30 15:16:55 +0000 |
commit | 004f4fae87fe4fe3c31948d55206291b6de64ba9 (patch) | |
tree | 6e5521b736d72cbd03c0e7b627f492f89523dc63 /l10ntools | |
parent | 408acea40bf2e4dfaa5fc79779de0611b367128a (diff) |
Correct escaping tags
which worked wrong with some language like Asturian
Change-Id: Icd5939316ac84a3e569a9cbc04e38edda59dead1
Reviewed-on: https://gerrit.libreoffice.org/735
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/po.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index 0649efedac0a..f929ce70dc18 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -330,7 +330,9 @@ void ImplFindAllTag(const OString& rText,std::vector<OString>& o_vFoundTags) { ImplMinimize(sTemp,aRegExp,aRegs); o_vFoundTags.push_back( - rText.copy(aRegs.start[0],aRegs.end[0]-aRegs.start[0])); + OUStringToOString( + sTemp.copy(aRegs.start[0],aRegs.end[0]-aRegs.start[0]), + RTL_TEXTENCODING_UTF8)); nStart = aRegs.end[0]; memset(static_cast<void*>(&aRegs), 0, sizeof(re_registers)); aRegExp.re_search(&aRegs,nStart); |