diff options
author | flathill <flathill@FreeBSD.org> | 1999-08-27 15:30:17 +0800 |
---|---|---|
committer | flathill <flathill@FreeBSD.org> | 1999-08-27 15:30:17 +0800 |
commit | fb7c9763224244cec4f7b66677bde056e068357c (patch) | |
tree | 5158dc29788f755b7b5171d737c4deed8050a5e3 /japanese | |
parent | 6f288322a12d49cb85ae7ce13a42e3ba5ac03279 (diff) | |
download | freebsd-ports-gnome-fb7c9763224244cec4f7b66677bde056e068357c.tar.gz freebsd-ports-gnome-fb7c9763224244cec4f7b66677bde056e068357c.tar.zst freebsd-ports-gnome-fb7c9763224244cec4f7b66677bde056e068357c.zip |
Fix for faultless Japanese message support
PR: ports/13395
Submitted by: knu@and.or.jp
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/gtkicq/files/patch-aa | 111 | ||||
-rw-r--r-- | japanese/gtkicq/files/patch-ab | 23 |
2 files changed, 134 insertions, 0 deletions
diff --git a/japanese/gtkicq/files/patch-aa b/japanese/gtkicq/files/patch-aa new file mode 100644 index 000000000000..0bcbd31e66b4 --- /dev/null +++ b/japanese/gtkicq/files/patch-aa @@ -0,0 +1,111 @@ +*** src/histadd.c.orig Tue Aug 17 01:17:01 1999 +--- src/histadd.c Tue Aug 17 01:22:06 1999 +*************** +*** 13,22 **** + time_t timedate; + struct tm *my_tm; + char pdate[46]; +- int cx, cy, cz; + char *halves[] = { "AM", "PM" }; + int half = 0; +- char buf[ 1024 ]; + + char *filename; + int file; +--- 13,20 ---- +*************** +*** 53,84 **** + + write( file, pdate, strlen( pdate ) ); + +! strcpy( buf, "" ); +! cy = cz = 0; +! for( cx = 0; cx < strlen( strings[ 2 ] ); cx ++ ) +! { +! cy ++; +! if( strings[ 2 ][cx] == '\n' || cy == 70 || +! ( cy >= 60 && strings[ 2 ][cx] == ' ' ) ) +! { +! write( file, ( strings[ 2 ] + cz ), cy ); +! if( cy >= 60 && cy != 70 ) +! { +! write( file, "\n", 1 ); +! } +! if( cy == 70 ) +! { +! write( file, "-\n", 2 ); +! } +! cz += cy; +! cy = 0; +! } +! } +! +! if( cz != strlen( strings[ 2 ] ) ) +! { +! write( file, ( strings[ 2 ] + cz ), strlen( strings[ 2 ] ) - cz ); +! } + + write( file, "\n", 1 ); + +--- 51,57 ---- + + write( file, pdate, strlen( pdate ) ); + +! write( file, strings[ 2 ], strlen( strings[ 2 ] ) ); + + write( file, "\n", 1 ); + +*************** +*** 92,101 **** + time_t timedate; + struct tm *my_tm; + char pdate[42]; +- int cx, cy, cz; + char *halves[] = { "AM", "PM" }; + int half = 0; +- char buf[ 1024 ]; + + char *filename; + int file; +--- 65,72 ---- +*************** +*** 132,163 **** + + write( file, pdate, strlen( pdate ) ); + +! strcpy( buf, "" ); +! cy = cz = 0; +! for( cx = 0; cx < strlen( strings[ 2 ] ); cx ++ ) +! { +! cy ++; +! if( strings[ 2 ][cx] == '\n' || cy == 70 || +! ( cy >= 60 && strings[ 2 ][cx] == ' ' ) ) +! { +! write( file, ( strings[ 2 ] + cz ), cy ); +! if( cy >= 60 && cy != 70 ) +! { +! write( file, "\n", 1 ); +! } +! if( cy == 70 ) +! { +! write( file, "-\n", 2 ); +! } +! cz += cy; +! cy = 0; +! } +! } +! +! if( cz != strlen( strings[ 2 ] ) ) +! { +! write( file, ( strings[ 2 ] + cz ), strlen( strings[ 2 ] ) - cz ); +! } + + write( file, "\n", 1 ); + +--- 103,109 ---- + + write( file, pdate, strlen( pdate ) ); + +! write( file, strings[ 2 ], strlen( strings[ 2 ] ) ); + + write( file, "\n", 1 ); diff --git a/japanese/gtkicq/files/patch-ab b/japanese/gtkicq/files/patch-ab new file mode 100644 index 000000000000..7e7ef2a69898 --- /dev/null +++ b/japanese/gtkicq/files/patch-ab @@ -0,0 +1,23 @@ +*** src/l10n_conv.c.orig Tue Aug 17 01:17:43 1999 +--- src/l10n_conv.c Tue Aug 17 01:17:59 1999 +*************** +*** 10,18 **** + #ifdef L10N + #ifdef JAPANESE + if(!strcmp(to, "toLocal")){ +! return toStringEUC( t_in ); + }else if(!strcmp(to, "toNet")){ +! return toStringSJIS( t_in ); + } + #else ifdef RUSSIAN + if(!strcmp(to, "toLocal")){ +--- 10,18 ---- + #ifdef L10N + #ifdef JAPANESE + if(!strcmp(to, "toLocal")){ +! return toStringEUCfromSJIS( t_in ); + }else if(!strcmp(to, "toNet")){ +! return toStringSJISfromEUC( t_in ); + } + #else ifdef RUSSIAN + if(!strcmp(to, "toLocal")){ |