diff --git a/import.log b/import.log index 8cf8f2c..e6d0b65 100644 --- a/import.log +++ b/import.log @@ -13,3 +13,4 @@ libchewing-0_3_2-11_fc11:HEAD:libchewing-0.3.2-11.fc11.src.rpm:1245996227 libchewing-0_3_2-12_fc11:HEAD:libchewing-0.3.2-12.fc11.src.rpm:1246329909 libchewing-0_3_2-14_fc11:HEAD:libchewing-0.3.2-14.fc11.src.rpm:1249025558 libchewing-0_3_2-15_fc11:HEAD:libchewing-0.3.2-15.fc11.src.rpm:1249275193 +libchewing-0_3_2-16_fc11:HEAD:libchewing-0.3.2-16.fc11.src.rpm:1254274732 diff --git a/libchewing-0.3.2.chewing_zuin.patch b/libchewing-0.3.2.chewing_zuin.patch new file mode 100644 index 0000000..47dadad --- /dev/null +++ b/libchewing-0.3.2.chewing_zuin.patch @@ -0,0 +1,12 @@ +diff -up ./src/mod_aux.c.chewing_zuin ./src/mod_aux.c +--- ./src/mod_aux.c.chewing_zuin 2009-09-30 11:11:56.000000000 +1000 ++++ ./src/mod_aux.c 2009-09-30 11:20:31.000000000 +1000 +@@ -90,7 +90,7 @@ CHEWING_API char *chewing_zuin_String( C + if ( ctx->output->zuinBuf[ i ].s[ 0 ] != '\0' ) { + strcat( s, (char *) (ctx->output->zuinBuf[ i ].s) ); + if ( zuin_count ) +- *zuin_count++; ++ (*zuin_count)++; + } + } + return s; diff --git a/libchewing.spec b/libchewing.spec index 532ee2d..e188f75 100644 --- a/libchewing.spec +++ b/libchewing.spec @@ -1,7 +1,7 @@ Name: libchewing Version: 0.3.2 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Intelligent phonetic input method library for Traditional Chinese Group: System Environment/Libraries @@ -19,6 +19,7 @@ Source: http://chewing.csie.net/download/libchewing/%{name}-%{version}.t #Patch8: libchewing-0.3.0-11.bz195416.patch Patch9: libchewing-0.3.2.bz477690.patch Patch10: libchewing-0.3.2.phraseChoiceRearward.patch +Patch11: libchewing-0.3.2.chewing_zuin.patch %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define libchewing_python_dir %{python_sitearch}/%{name} @@ -57,6 +58,7 @@ library. #%patch8 -p1 -b .9-bz195416 %patch9 -p0 -b .bz477690 %patch10 -p0 -b .phraseChoiceRearward +%patch11 -p0 -b .chewing_zuin %build export CFLAGS=-DLIBINSTDIR='\"%{_libdir}\" -g' @@ -98,6 +100,11 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.so %changelog +* Wed Sep 30 2009 Ding-Yi Chen - 0.3.2-16 +- Fix chewing Google issue 352: + zuin_count in chewing_zuin_String( ChewingContext *ctx, int *zuin_count ) + does not count correctly. + * Mon Aug 03 2009 Ding-Yi Chen - 0.3.2-15 - Fix [Bug 512108:issue 11] ibus-chewing crash the application by move cursor_orig to chewingio.c global.