Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
414540ae
Kaydet (Commit)
414540ae
authored
Tem 02, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
allow build with icu 4.2
Change-Id: I4bbcff7963520426d4c04e15d2239431aff65b56
üst
c80be302
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
collator_unicode.cxx
i18npool/source/collator/collator_unicode.cxx
+5
-0
No files found.
i18npool/source/collator/collator_unicode.cxx
Dosyayı görüntüle @
414540ae
...
...
@@ -333,6 +333,10 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
if
(
func
&&
funclen
)
{
const
sal_uInt8
*
ruleImage
=
func
();
size_t
ruleImageSize
=
funclen
();
#if (U_ICU_VERSION_MAJOR_NUM == 4) && (U_ICU_VERSION_MINOR_NUM <= 2)
uca_base
=
new
RuleBasedCollator
(
static_cast
<
UChar
*>
(
NULL
),
status
);
#else
// Not only changed ICU 53.1 the API behavior that a negative
// length (ruleImageSize) now leads to failure, but also that
// the base RuleBasedCollator passed as uca_base here needs to
...
...
@@ -344,6 +348,7 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
// NULL (default) locale does not.
uca_base
=
static_cast
<
RuleBasedCollator
*>
(
icu
::
Collator
::
createInstance
(
icu
::
Locale
::
getRoot
(),
status
));
#endif
if
(
!
U_SUCCESS
(
status
))
throw
RuntimeException
();
collator
=
new
RuleBasedCollator
(
reinterpret_cast
<
const
uint8_t
*>
(
ruleImage
),
ruleImageSize
,
uca_base
,
status
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment