sc/source/core/tool/compiler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0c44a7b29c7ee393fa209b7fdf4c940cbace0fb5 Author: Eike Rathke <er...@redhat.com> AuthorDate: Sat Jun 18 01:08:27 2022 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Sat Jun 18 19:58:36 2022 +0200 Related: tdf#142293 Use the same locale to lowercase as was to uppercase ... so a #NAME? bad token isn't mixed up like it was with the stored loaded from document com.sun.star.sheet.addin.Analysis.getEdate upper-cased in tr-TR to COM.SUN.STAR.SHEET.ADDİN.ANALYSİS.GETEDATE and then lower-cased in en-US to com.sun.star.sheet.addİn.analysİs.getedate which confusingly was the user-visible token string. Change-Id: I341648fcf34fa1cae164d24ad2023bd74573bd3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136071 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins (cherry picked from commit 994d517a48f7e092ec57d179abb855ef5a86eacb) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136046 diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 34accc2593df..301d90ed3b7a 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -4617,7 +4617,8 @@ Label_Rewind: // Provide single token information and continue. Do not set an error, that // would prematurely end compilation. Simple unknown names are handled by // the interpreter. - aUpper = pCharClass->lowercase( aUpper ); + // Use the same CharClass that was used for uppercase. + aUpper = (mbCharClassesDiffer ? ScGlobal::getCharClass() : *pCharClass).lowercase( aUpper ); svl::SharedString aSS = rDoc.GetSharedStringPool().intern(aUpper); maRawToken.SetString(aSS.getData(), aSS.getDataIgnoreCase()); maRawToken.NewOpCode( ocBad );