https://bugs.freedesktop.org/show_bug.cgi?id=58060

Michael Meeks <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #2 from Michael Meeks <[email protected]> ---
So the problem creeps in in the range:

git log 24761a6..7061f72159e38e76134bc7fefc8a75cd233889c | grep Author | wc -l

five thousand commits or so :-) If I was guessing, I'd think:

commit 378e437fbe313e87b7e56f8f0a1fc4009470679c
Author: Eike Rathke <[email protected]>
Date:   Fri Nov 16 23:22:11 2012 +0100

    use LanguageTag

    Change-Id: If056193c803f70f8707373ed7ff7b1abbf953852

1       1       editeng/source/misc/svxacorr.cxx

diff --git a/editeng/source/misc/svxacorr.cxx
b/editeng/source/misc/svxacorr.cxx
index 3f2298a..d8ae94c 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1905,7 +1905,7 @@ sal_Bool
SvxAutoCorrect::FindInCplSttExceptList(LanguageType eLang,
 String SvxAutoCorrect::GetAutoCorrFileName( LanguageType eLang,
                                             sal_Bool bNewFile, sal_Bool bTst )
const
 {
-    String sRet, sExt( MsLangId::convertLanguageToIsoString( eLang ) );
+    String sRet, sExt( LanguageTag( eLang ).getBcp47() );
     sExt.Insert('_', 0);
     sExt.AppendAscii( ".dat" );
     if( bNewFile )

Might be related; is it possible that some corner-case LanguageType enumeration
like LANGUAGE_DONTKNOW is getting mapped differently there:

sal_Bool SvxAutoCorrect::AddCplSttException( const String& rNew,
                                        LanguageType eLang )
...
        else if(CreateLanguageFile(LANGUAGE_DONTKNOW, sal_True))
            pLists = pLangTable->find(LANGUAGE_DONTKNOW)->second;

Is liblangtag using the default instead of empty-string perhaps ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to