patches/scim-02-ss12-patch.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 762 b7d5033f034b
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
     1
diff -ur scim-1.4.7.orig/bootstrap scim-1.4.7/bootstrap
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
     2
--- scim-1.4.7.orig/bootstrap	2007-10-09 00:43:58.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
     3
+++ scim-1.4.7/bootstrap	2008-01-04 15:04:20.379692893 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
     4
@@ -20,7 +20,7 @@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
     5
 #! /bin/sh
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
     6
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
     7
 set -x
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
     8
-aclocal -I m4
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
     9
+aclocal
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    10
 autoheader
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    11
 libtoolize -c --automake 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    12
 automake --add-missing --copy --include-deps
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    13
diff -ur scim-1.4.7.orig/configure.ac scim-1.4.7/configure.ac
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    14
--- scim-1.4.7.orig/configure.ac	2007-10-09 00:43:58.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    15
+++ scim-1.4.7/configure.ac	2008-01-04 15:04:20.377310166 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    16
@@ -66,7 +66,9 @@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    17
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    18
 # Init gettext
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    19
 ALL_LINGUAS="zh_CN zh_TW ja ko de fr it cs pa fi sv nl"
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    20
-AM_GNU_GETTEXT
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    21
+AM_GLIB_GNU_GETTEXT
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    22
+LTLIBINTL=
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    23
+AC_SUBST(LTLIBINTL)
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    24
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    25
 # Init libtool
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    26
 AC_LIBTOOL_DLOPEN
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    27
diff -ur scim-1.4.7.orig/extras/gtk2_immodule/Makefile.am scim-1.4.7/extras/gtk2_immodule/Makefile.am
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    28
--- scim-1.4.7.orig/extras/gtk2_immodule/Makefile.am	2007-10-09 00:43:22.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    29
+++ scim-1.4.7/extras/gtk2_immodule/Makefile.am	2008-01-04 15:04:20.378042640 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    30
@@ -38,13 +38,13 @@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    31
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    32
 im_scim_la_SOURCES = gtkimcontextscim.cpp imscim.cpp
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    33
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    34
-im_scim_la_CXXFLAGS=@GTK2_CFLAGS@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    35
+im_scim_la_CXXFLAGS=@GTK2_CFLAGS@ \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    36
+		    -instlib=$(top_builddir)/src/.libs/libscim-1.0.so
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    37
 im_scim_la_CFLAGS  =@GTK2_CFLAGS@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    38
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    39
 im_scim_la_LDFLAGS = -rpath $(moduledir) \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    40
 		     -avoid-version \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    41
 		     -module \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    42
-		     -lstdc++ \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    43
 		     $(LD_VERSION_SCRIPT_OPTION) \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    44
 		     @GTK2_LIBS@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    45
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    46
diff -ur scim-1.4.7.orig/extras/setup/Makefile.am scim-1.4.7/extras/setup/Makefile.am
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    47
--- scim-1.4.7.orig/extras/setup/Makefile.am	2007-10-09 00:43:20.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    48
+++ scim-1.4.7/extras/setup/Makefile.am	2008-01-04 15:04:20.377675411 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    49
@@ -55,7 +55,6 @@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    50
 setup_la_LDFLAGS	= -avoid-version \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    51
 		     	  -rpath $(moduledir) \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    52
 			  -module \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    53
-			  -lstdc++ \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    54
 			  @LIBTOOL_EXPORT_OPTIONS@ \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    55
 			  @GTK2_LIBS@ \
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    56
 			  @LTLIBINTL@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    57
diff -ur scim-1.4.7.orig/Makefile.am scim-1.4.7/Makefile.am
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    58
--- scim-1.4.7.orig/Makefile.am	2007-10-09 00:43:58.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    59
+++ scim-1.4.7/Makefile.am	2008-01-04 15:04:20.380120473 +0800
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    60
@@ -33,7 +33,7 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    61
 			  intltool-update.in
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    62
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    63
 AUTOMAKE_OPTIONS 	= gnu
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    64
-SUBDIRS 		= m4  intl src utils modules configs docs po extras data tests
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    65
+SUBDIRS 		= src utils modules configs docs po extras data tests
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    66
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    67
 MAINTAINERCLEANFILES 	= Makefile.in \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    68
 			  aclocal.m4 \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    69
@@ -61,7 +61,7 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    70
 			  $(GTK_UTILS_PKGCONFIG) \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    71
 			  $(X11_UTILS_PKGCONFIG)
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    72
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    73
-ACLOCAL_AMFLAGS = -I m4
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    74
+ACLOCAL_AMFLAGS = 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    75
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    76
 .PHONY: update-ChangeLog
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    77
 
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    78
diff -ur scim-1.4.7.orig/modules/FrontEnd/scim_x11_frontend.cpp scim-1.4.7/modules/FrontEnd/scim_x11_frontend.cpp
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    79
--- scim-1.4.7.orig/modules/FrontEnd/scim_x11_frontend.cpp	2007-10-09 00:43:28.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    80
+++ scim-1.4.7/modules/FrontEnd/scim_x11_frontend.cpp	2008-01-04 15:04:20.379279064 +0800
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    81
@@ -46,6 +46,7 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    82
 #include <X11/Xlib.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    83
 #include <X11/keysym.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    84
 #include <X11/Xutil.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    85
+#include <locale.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    86
 #include "IMdkit/IMdkit.h"
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    87
 #include "IMdkit/Xi18n.h"
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    88
 
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    89
diff -ur scim-1.4.7.orig/src/ltdl.cpp scim-1.4.7/src/ltdl.cpp
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    90
--- scim-1.4.7.orig/src/ltdl.cpp	2007-10-09 00:42:09.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    91
+++ scim-1.4.7/src/ltdl.cpp	2008-01-04 15:04:20.372382842 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    92
@@ -3372,7 +3372,7 @@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    93
   assert (filename);
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    94
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    95
   len = LT_STRLEN (filename);
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    96
-  ext = strrchr (filename, '.');
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    97
+  ext = strrchr ((char*)filename, '.');
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    98
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
    99
   /* If FILENAME already bears a suitable extension, there is no need
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   100
      to try appending additional extensions.  */
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   101
diff -ur scim-1.4.7.orig/src/Makefile.am scim-1.4.7/src/Makefile.am
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   102
--- scim-1.4.7.orig/src/Makefile.am	2007-10-09 00:42:09.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   103
+++ scim-1.4.7/src/Makefile.am	2008-01-04 15:04:20.376383412 +0800
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   104
@@ -134,8 +134,7 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   105
 			  $(LD_VERSION_SCRIPT_OPTION) \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   106
 			  @LIBTOOL_EXPORT_OPTIONS@ \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   107
 			  @LIBICONV@ \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   108
-			  @LTLIBINTL@ \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   109
-			  -lstdc++
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   110
+			  @LTLIBINTL@ 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   111
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   112
 libscim@SCIM_EPOCH@_la_LIBADD	= libltdlc.la
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   113
 
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   114
diff -ur scim-1.4.7.orig/src/scim.h scim-1.4.7/src/scim.h
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   115
--- scim-1.4.7.orig/src/scim.h	2007-10-09 00:42:09.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   116
+++ scim-1.4.7/src/scim.h	2008-01-04 15:04:20.369805270 +0800
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   117
@@ -298,14 +298,14 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   118
     #include <scim_global_config.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   119
 #endif
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   120
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   121
-#ifdef Uses_SCIM_OBJECT
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   122
-    #include <scim_object.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   123
-#endif
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   124
-
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   125
 #ifdef Uses_SCIM_POINTER
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   126
     #include <scim_pointer.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   127
 #endif
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   128
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   129
+#ifdef Uses_SCIM_OBJECT
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   130
+    #include <scim_object.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   131
+#endif
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   132
+
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   133
 #ifdef Uses_SCIM_SLOT
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   134
     #include <scim_slot.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   135
 #endif
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   136
diff -ur scim-1.4.7.orig/src/scim_pointer.h scim-1.4.7/src/scim_pointer.h
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   137
--- scim-1.4.7.orig/src/scim_pointer.h	2007-10-09 00:42:09.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   138
+++ scim-1.4.7/src/scim_pointer.h	2008-01-04 15:04:20.375588994 +0800
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   139
@@ -84,7 +84,7 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   140
     //!<
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   141
     //!< <BR>Initialize a new Pointer with any dumb pointer.
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   142
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   143
-    Pointer(Pointer& src) : t(0)
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   144
+    Pointer(const Pointer& src) : t(0)
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   145
     {
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   146
         set(src.get());
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   147
     }
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   148
diff -ur scim-1.4.7.orig/src/scim_socket.cpp scim-1.4.7/src/scim_socket.cpp
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   149
--- scim-1.4.7.orig/src/scim_socket.cpp	2007-10-09 00:42:09.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   150
+++ scim-1.4.7/src/scim_socket.cpp	2008-01-04 15:04:20.373401972 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   151
@@ -50,6 +50,10 @@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   152
 #include "scim_private.h"
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   153
 #include "scim.h"
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   154
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   155
+#if defined(sun) && !defined(SUN_LEN)
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   156
+#define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   157
+#endif
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   158
+
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   159
 #define SCIM_SOCKET_SERVER_MAX_CLIENTS  256
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   160
 
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   161
 namespace scim {
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   162
diff -ur scim-1.4.7.orig/src/scim_transaction.cpp scim-1.4.7/src/scim_transaction.cpp
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   163
--- scim-1.4.7.orig/src/scim_transaction.cpp	2007-10-09 00:42:09.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   164
+++ scim-1.4.7/src/scim_transaction.cpp	2008-01-04 15:04:20.375108353 +0800
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   165
@@ -792,7 +792,8 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   166
         }
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   167
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   168
         if (len)
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   169
-            str = String (m_impl->m_holder->m_buffer + m_impl->m_read_pos, m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   170
+            str = String ((const char*)(m_impl->m_holder->m_buffer + m_impl->m_read_pos), 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   171
+                          (const char*)m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   172
         else
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   173
             str = String ("");
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   174
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   175
@@ -828,7 +829,8 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   176
         }
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   177
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   178
         if (len)
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   179
-            mbs = String (m_impl->m_holder->m_buffer + m_impl->m_read_pos, m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   180
+            mbs = String ((const char*)(m_impl->m_holder->m_buffer + m_impl->m_read_pos), 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   181
+                          (const char*)m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   182
         else
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   183
             mbs = String ("");
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   184
 
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   185
diff -ur scim-1.4.7.orig/src/scim_types.h.in scim-1.4.7/src/scim_types.h.in
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   186
--- scim-1.4.7.orig/src/scim_types.h.in	2007-10-09 00:42:09.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   187
+++ scim-1.4.7/src/scim_types.h.in	2008-01-04 15:04:20.375978401 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   188
@@ -32,6 +32,10 @@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   189
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   190
 @INCLUDE_STDINT@
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   191
 
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   192
+#if defined (sun) && defined (_WCHAR_T)
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   193
+#  define __STDC_ISO_10646__
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   194
+#endif
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   195
+
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   196
 #ifdef __FreeBSD__
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   197
 # include <osreldate.h>
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   198
 # if __FreeBSD_version > 500035
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   199
diff -ur scim-1.4.7.orig/src/scim_utility.cpp scim-1.4.7/src/scim_utility.cpp
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   200
--- scim-1.4.7.orig/src/scim_utility.cpp	2007-10-09 00:42:09.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   201
+++ scim-1.4.7/src/scim_utility.cpp	2008-01-04 15:04:20.374162591 +0800
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   202
@@ -40,6 +40,7 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   203
 #include <stdio.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   204
 #include <time.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   205
 #include <errno.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   206
+#include <locale.h>
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   207
 
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   208
 #include "scim_private.h"
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   209
 #include "scim.h"
762
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   210
diff -ur scim-1.4.7.orig/tests/Makefile.am scim-1.4.7/tests/Makefile.am
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   211
--- scim-1.4.7.orig/tests/Makefile.am	2007-10-09 00:42:47.000000000 +0800
b7d5033f034b 2008-01-04 Yong Sun <[email protected]>
yongsun
parents: 353
diff changeset
   212
+++ scim-1.4.7/tests/Makefile.am	2008-01-04 15:04:20.376737902 +0800
353
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   213
@@ -49,7 +49,6 @@
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   214
 test_helper_la_LDFLAGS	= -avoid-version \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   215
 		     	  -rpath $(helpermoduledir) \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   216
 			  -module \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   217
-			  -lstdc++ \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   218
 			  @LIBTOOL_EXPORT_OPTIONS@ \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   219
 			  @GTK2_LIBS@ \
70b47e90db3f 2007-07-27 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
   220
 			  @LTLIBINTL@