l10ntools/source/po.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 004f4fae87fe4fe3c31948d55206291b6de64ba9
Author: Zolnai Tamás <[email protected]>
Date:   Sun Sep 30 16:33:47 2012 +0200

    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 <[email protected]>
    Tested-by: Andras Timar <[email protected]>

diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index 0649efe..f929ce7 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);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to