nonomura <nono181...@yahoo.co.jp> escreveu no dia sexta, 26/10/2018 à(s) 03:00:
> > > > > > > > > >> https://github.com/Alexpux/firebird-git-svn/blob/master/src/common/unicode_util.cpp#L1334 > > > > > > > > > Just a heads up: that is an outdated clone of an old repository that > > > was synced from subversion and hasn't been updated since 2015. > > > > > > The Firebird repository is on https://github.com/FirebirdSQL/firebird > > > > > > Mark > > > > Thanks. > > Then, maybe it is the following: > > https://github.com/FirebirdSQL/firebird/blob/2d973b902efe5f00d15a1cd533835f8fba3e8e99/src/common/unicode_util.cpp#L1324 > > > > Hiro > > I made the changes that you suggested: diff --git a/src/common/unicode_util.cpp b/src/common/unicode_util.cpp index d24eba9432..e985f59ce8 100644 --- a/src/common/unicode_util.cpp +++ b/src/common/unicode_util.cpp @@ -1327,10 +1327,14 @@ UnicodeUtil::Utf16Collation* UnicodeUtil::Utf16Collation::create( if ((attributes & (TEXTTYPE_ATTR_CASE_INSENSITIVE | TEXTTYPE_ATTR_ACCENT_INSENSITIVE)) == (TEXTTYPE_ATTR_CASE_INSENSITIVE | TEXTTYPE_ATTR_ACCENT_INSENSITIVE)) { + icu->ucolSetAttribute(sortCollator, UCOL_STRENGTH, UCOL_PRIMARY, &status); icu->ucolSetAttribute(compareCollator, UCOL_STRENGTH, UCOL_PRIMARY, &status); } else if (attributes & TEXTTYPE_ATTR_CASE_INSENSITIVE) + { + icu->ucolSetAttribute(sortCollator, UCOL_STRENGTH, UCOL_SECONDARY,&status); icu->ucolSetAttribute(compareCollator, UCOL_STRENGTH, UCOL_SECONDARY, &status); + } } USet* contractions = icu->usetOpen(0, 0); and tested in Linux x64, didn't solve the problem
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel