gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

chinese patch


From: haojun bao
Subject: chinese patch
Date: Mon, 16 Feb 2004 05:41:49 -0800 (PST)

hi,

This file is generated by running "diff -u -r
./gnokii-0.5.10 ./gnokii-0.5.10-chinese". hope it will
be of any help.

diff -u -r ./gnokii-0.5.10/common/gnokii.pc
./gnokii-0.5.10-chinese-patched/common/gnokii.pc
--- ./gnokii-0.5.10/common/gnokii.pc    2004-02-02
00:00:17.000000000 +0800
+++ ./gnokii-0.5.10-chinese-patched/common/gnokii.pc
2004-02-16 21:27:32.000000000 +0800
@@ -6,5 +6,5 @@
 Name: gnokii
 Description: Gnokii library interface
 Version: 0.5.10
-Libs: -L${libdir} -lgnokii  -lbluetooth 
-L/usr/X11R6/lib -lXpm -lX11 
+Libs: -L${libdir} -lgnokii   -L/usr/X11R6/lib -lXpm
-lX11 
 Cflags: -I${includedir} -g -O2  -I/usr/X11R6/include
diff -u -r ./gnokii-0.5.10/common/gsm-encoding.c
./gnokii-0.5.10-chinese-patched/common/gsm-encoding.c
--- ./gnokii-0.5.10/common/gsm-encoding.c       2004-02-01
23:59:32.000000000 +0800
+++
./gnokii-0.5.10-chinese-patched/common/gsm-encoding.c
2004-02-13 15:23:37.000000000 +0800
@@ -362,6 +362,7 @@
        char buf[5];
 
        buf[4] = '\0';
+       wctomb(NULL, NULL);
        for (i_len = 0; i_len < len ; i_len++) {
                buf[0] = *(src + i_len * 4);
                buf[1] = *(src + i_len * 4 + 1);
@@ -388,6 +389,8 @@
        wchar_t wc;
        int i_len = 0, o_len, length;
 
+       mbtowc(NULL, NULL, 0);
+
        for (o_len = 0; i_len < len ; o_len++) {
                switch (length = char_uni_alphabet_encode(src +
i_len, &wc)) {
                case -1:
@@ -406,6 +409,8 @@
 {
        int i, length = 0, pos = 0;
 
+       wctomb(NULL, NULL);
+
        for (i = 0; i < len / 2; i++) {
                length = char_uni_alphabet_decode((src[i * 2] << 8)
| src[(i * 2) + 1], dest);
                dest += length;
@@ -420,6 +425,7 @@
        int length, offset = 0, pos = 0;
        wchar_t  wc;
 
+       mbtowc(NULL, NULL, 1);
        while (offset < len) {
                switch (length = char_uni_alphabet_encode(src +
offset, &wc)) {
                case -1:
diff -u -r ./gnokii-0.5.10/common/gsm-sms.c
./gnokii-0.5.10-chinese-patched/common/gsm-sms.c
--- ./gnokii-0.5.10/common/gsm-sms.c    2004-02-01
23:59:32.000000000 +0800
+++ ./gnokii-0.5.10-chinese-patched/common/gsm-sms.c
2004-02-14 00:18:43.000000000 +0800
@@ -1139,7 +1139,7 @@
                        case GN_SMS_DCS_UCS2:
                                rawsms->dcs |= 0x08;
                                char_unicode_encode(rawsms->user_data + offset,
sms->user_data[i].u.text, length);
-                               length *= 2;
+                               //length *= 2;
                                rawsms->user_data_length = rawsms->length =
length + offset;
                                break;
                        default:
Only in ./gnokii-0.5.10-chinese-patched/common: vcal.c
Only in ./gnokii-0.5.10-chinese-patched: config.log
Only in ./gnokii-0.5.10-chinese-patched: config.status
Only in ./gnokii-0.5.10-chinese-patched/include:
config.h
diff -u -r ./gnokii-0.5.10/intl/Makefile
./gnokii-0.5.10-chinese-patched/intl/Makefile
--- ./gnokii-0.5.10/intl/Makefile       2004-02-02
00:00:17.000000000 +0800
+++ ./gnokii-0.5.10-chinese-patched/intl/Makefile
2004-02-16 21:27:32.000000000 +0800
@@ -37,7 +37,7 @@
 aliaspath = $(localedir)
 subdir = intl
 
-INSTALL = /usr/bin/ginstall -c
+INSTALL = /usr/bin/install -c
 INSTALL_DATA = ${INSTALL} -m 644
 MKINSTALLDIRS = config/mkinstalldirs
 mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in
/*) echo "$(MKINSTALLDIRS)" ;; *) echo
"$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
diff -u -r ./gnokii-0.5.10/libtool
./gnokii-0.5.10-chinese-patched/libtool
--- ./gnokii-0.5.10/libtool     2004-02-02
00:00:00.000000000 +0800
+++ ./gnokii-0.5.10-chinese-patched/libtool     2004-02-16
21:27:13.000000000 +0800
@@ -27,10 +27,10 @@
 # the same distribution terms that you use for the
rest of that program.
 
 # A sed that does not truncate output.
-SED="/usr/bin/sed"
+SED="/bin/sed"
 
 # Sed that helps us avoid accidentally triggering
echo(1) options like -n.
-Xsed="/usr/bin/sed -e s/^X//"
+Xsed="/bin/sed -e s/^X//"
 
 # The HP-UX ksh and POSIX shell print the target
directory to stdout
 # if CDPATH is set.
@@ -38,7 +38,7 @@
 
 # ### BEGIN LIBTOOL CONFIG
 
-# Libtool was configured on host laptok:
+# Libtool was configured on host lfs:
 
 # Shell to use when invoking shell scripts.
 SHELL="/bin/sh"
@@ -73,7 +73,7 @@
 with_gcc=yes
 
 # The linker used to build libraries.
-LD="/usr/i386-slackware-linux/bin/ld"
+LD="/usr/bin/ld"
 
 # Whether we need hard or soft links.
 LN_S="ln -s"
Only in ./gnokii-0.5.10-chinese-patched:
Makefile.global
Only in
./gnokii-0.5.10-chinese-patched/packaging/RedHat:
gnokii.spec
Only in
./gnokii-0.5.10-chinese-patched/packaging/Slackware:
SlackBuild




-- 
best, 
Bao Haojun


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
diff -u -r ./gnokii-0.5.10/common/gnokii.pc 
./gnokii-0.5.10-chinese-patched/common/gnokii.pc
--- ./gnokii-0.5.10/common/gnokii.pc    2004-02-02 00:00:17.000000000 +0800
+++ ./gnokii-0.5.10-chinese-patched/common/gnokii.pc    2004-02-16 
21:27:32.000000000 +0800
@@ -6,5 +6,5 @@
 Name: gnokii
 Description: Gnokii library interface
 Version: 0.5.10
-Libs: -L${libdir} -lgnokii  -lbluetooth  -L/usr/X11R6/lib -lXpm -lX11 
+Libs: -L${libdir} -lgnokii   -L/usr/X11R6/lib -lXpm -lX11 
 Cflags: -I${includedir} -g -O2  -I/usr/X11R6/include
diff -u -r ./gnokii-0.5.10/common/gsm-encoding.c 
./gnokii-0.5.10-chinese-patched/common/gsm-encoding.c
--- ./gnokii-0.5.10/common/gsm-encoding.c       2004-02-01 23:59:32.000000000 
+0800
+++ ./gnokii-0.5.10-chinese-patched/common/gsm-encoding.c       2004-02-13 
15:23:37.000000000 +0800
@@ -362,6 +362,7 @@
        char buf[5];
 
        buf[4] = '\0';
+       wctomb(NULL, NULL);
        for (i_len = 0; i_len < len ; i_len++) {
                buf[0] = *(src + i_len * 4);
                buf[1] = *(src + i_len * 4 + 1);
@@ -388,6 +389,8 @@
        wchar_t wc;
        int i_len = 0, o_len, length;
 
+       mbtowc(NULL, NULL, 0);
+
        for (o_len = 0; i_len < len ; o_len++) {
                switch (length = char_uni_alphabet_encode(src + i_len, &wc)) {
                case -1:
@@ -406,6 +409,8 @@
 {
        int i, length = 0, pos = 0;
 
+       wctomb(NULL, NULL);
+
        for (i = 0; i < len / 2; i++) {
                length = char_uni_alphabet_decode((src[i * 2] << 8) | src[(i * 
2) + 1], dest);
                dest += length;
@@ -420,6 +425,7 @@
        int length, offset = 0, pos = 0;
        wchar_t  wc;
 
+       mbtowc(NULL, NULL, 1);
        while (offset < len) {
                switch (length = char_uni_alphabet_encode(src + offset, &wc)) {
                case -1:
diff -u -r ./gnokii-0.5.10/common/gsm-sms.c 
./gnokii-0.5.10-chinese-patched/common/gsm-sms.c
--- ./gnokii-0.5.10/common/gsm-sms.c    2004-02-01 23:59:32.000000000 +0800
+++ ./gnokii-0.5.10-chinese-patched/common/gsm-sms.c    2004-02-14 
00:18:43.000000000 +0800
@@ -1139,7 +1139,7 @@
                        case GN_SMS_DCS_UCS2:
                                rawsms->dcs |= 0x08;
                                char_unicode_encode(rawsms->user_data + offset, 
sms->user_data[i].u.text, length);
-                               length *= 2;
+                               //length *= 2;
                                rawsms->user_data_length = rawsms->length = 
length + offset;
                                break;
                        default:
Only in ./gnokii-0.5.10-chinese-patched/common: vcal.c
Only in ./gnokii-0.5.10-chinese-patched: config.log
Only in ./gnokii-0.5.10-chinese-patched: config.status
Only in ./gnokii-0.5.10-chinese-patched/include: config.h
diff -u -r ./gnokii-0.5.10/intl/Makefile 
./gnokii-0.5.10-chinese-patched/intl/Makefile
--- ./gnokii-0.5.10/intl/Makefile       2004-02-02 00:00:17.000000000 +0800
+++ ./gnokii-0.5.10-chinese-patched/intl/Makefile       2004-02-16 
21:27:32.000000000 +0800
@@ -37,7 +37,7 @@
 aliaspath = $(localedir)
 subdir = intl
 
-INSTALL = /usr/bin/ginstall -c
+INSTALL = /usr/bin/install -c
 INSTALL_DATA = ${INSTALL} -m 644
 MKINSTALLDIRS = config/mkinstalldirs
 mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo 
"$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
diff -u -r ./gnokii-0.5.10/libtool ./gnokii-0.5.10-chinese-patched/libtool
--- ./gnokii-0.5.10/libtool     2004-02-02 00:00:00.000000000 +0800
+++ ./gnokii-0.5.10-chinese-patched/libtool     2004-02-16 21:27:13.000000000 
+0800
@@ -27,10 +27,10 @@
 # the same distribution terms that you use for the rest of that program.
 
 # A sed that does not truncate output.
-SED="/usr/bin/sed"
+SED="/bin/sed"
 
 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
-Xsed="/usr/bin/sed -e s/^X//"
+Xsed="/bin/sed -e s/^X//"
 
 # The HP-UX ksh and POSIX shell print the target directory to stdout
 # if CDPATH is set.
@@ -38,7 +38,7 @@
 
 # ### BEGIN LIBTOOL CONFIG
 
-# Libtool was configured on host laptok:
+# Libtool was configured on host lfs:
 
 # Shell to use when invoking shell scripts.
 SHELL="/bin/sh"
@@ -73,7 +73,7 @@
 with_gcc=yes
 
 # The linker used to build libraries.
-LD="/usr/i386-slackware-linux/bin/ld"
+LD="/usr/bin/ld"
 
 # Whether we need hard or soft links.
 LN_S="ln -s"
Only in ./gnokii-0.5.10-chinese-patched: Makefile.global
Only in ./gnokii-0.5.10-chinese-patched/packaging/RedHat: gnokii.spec
Only in ./gnokii-0.5.10-chinese-patched/packaging/Slackware: SlackBuild

--pWyiEgJYm5f9v55/--

reply via email to

[Prev in Thread] Current Thread [Next in Thread]