[pyicu-dev] towards release 1.0

Andi Vajda vajda at osafoundation.org
Wed Mar 31 11:31:44 PDT 2010


On Wed, 31 Mar 2010, Christoph Burgmer wrote:

> Am Mittwoch, 31. März 2010 schrieb Andi Vajda:
>> On Wed, 31 Mar 2010, F Wolff wrote:
>>> I get lots of warnings about "deprecated conversion from string constant
>>> to ?char*?" (I can give the complete output if you want), but it
>>> eventually fails with
>>
>> If you're using a gcc 4.x compiler, add -Wno-write-strings to the CFLAGS
>>  for your platform in setup.py to silence these warnings.
>>
>>> search.cpp:594: error: ?USEARCH_ELEMENT_COMPARISON? was not declared in
>>> this scope search.cpp:601: error: ?USEARCH_STANDARD_ELEMENT_COMPARISON?
>>> was not declared in this scope search.cpp:602: error:
>>> ?USEARCH_PATTERN_BASE_WEIGHT_IS_WILDCARD? was not declared in this scope
>>> search.cpp:603: error: ?USEARCH_ANY_BASE_WEIGHT_IS_WILDCARD? was not
>>> declared in this scope error: command 'gcc' failed with exit status 1
>>>
>>> I don't see USEARCH_ELEMENT_COMPARISON (or any of the other three)
>>> anywhere in my installed header files for icu.
>>
>> Yes, these are in fact 4.4 features. I had mistakenly conditionalized them
>> on 4.0. Now fixed in trunk rev 131.
>
> I have to apply the following patch to compile under 4.2.1 on Debian:
>
> Index: dateformat.cpp
> ===================================================================
> --- dateformat.cpp      (Revision 132)
> +++ dateformat.cpp      (Arbeitskopie)
> @@ -1413,7 +1413,7 @@
>     INSTALL_STATIC_INT(DateFormat, HOUR0_FIELD);
>     INSTALL_STATIC_INT(DateFormat, TIMEZONE_FIELD);
>
> -#if U_ICU_VERSION_HEX >= 0x04000000
> +#if U_ICU_VERSION_HEX >= 0x04040000
>     INSTALL_STATIC_INT(DateIntervalInfo, kMaxIntervalPatternIndex);
> #endif

Applied to rev 133. Thanks !

Andi..


More information about the pyicu-dev mailing list