From owner-ports-jp@jp.freebsd.org  Tue Aug 17 01:54:51 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id BAA27416;
	Tue, 17 Aug 1999 01:54:51 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from ms.tokyo.jcom.ne.jp (ms.tokyo.jcom.ne.jp [210.234.123.18])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id BAA27411
	for <ports-jp@jp.freebsd.org>; Tue, 17 Aug 1999 01:54:50 +0900 (JST)
	(envelope-from musha@ms.tokyo.jcom.ne.jp)
Received: from daemon.my.domain (pc343006.tokyo.jcom.ne.jp [203.140.143.6])
	by ms.tokyo.jcom.ne.jp (8.9.1/3.7W 06/01/99) with ESMTP id BAA10529
	for <ports-jp@jp.freebsd.org>; Tue, 17 Aug 1999 01:54:12 +0900 (JST)
Received: by daemon.my.domain (8.9.3/3.7W) id BAA75016; Tue, 17 Aug 1999 01:53:40 +0900 (JST)
Date: Tue, 17 Aug 1999 01:53:38 +0900
Message-ID: <14264.16914.141483.72159A@archon.my.domain>
From: Akinori MUSHA aka knu <knu@and.or.jp>
To: ports-jp <ports-jp@jp.freebsd.org>
User-Agent: Wanderlust/2.1.3 (Sukiyaki) WEMI/1.13.5 (Fijieda) FLIM/1.13.1 (Tawaramoto) MULE XEmacs/20.4 (Emerald) (i386--freebsd)
Organization: A.N.D.
MIME-Version: 1.0 (generated by WEMI 1.13.5 - "Fijieda")
Content-Type: multipart/mixed;
 boundary="Multipart_Tue_Aug_17_01:53:38_1999-1"
Reply-To: ports-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: ports-jp 7185
Subject: [ports-jp 7185] patch for japanese/gtkicq
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org
X-Originator: knu@and.or.jp

--Multipart_Tue_Aug_17_01:53:38_1999-1
Content-Type: text/plain; charset=ISO-2022-JP


$B!!(Bknu$B$G$9!#(Bjapanese/libjcode $B$*$h$S(B japanese/gnome-icu $B$N7o$O(B
$B@hF|(Bsend-pr$B$7$^$7$?!#$=$l$>$l!"(Bpr 13154, 13155$B$H$J$C$F$$$^$9!#(B

$B!!$5$F!">e5-FsE@%;%C%H$K$h$kJ8;z2=$12sHr$r(B japanese/gtkicq $B$K$b(B
$BF~$l$F$_$^$7$?!#%Q%C%A:Q$_(B japanese/libjcode $B$,I,MW$G$9!#(B

$B!!E:IU$N%Q%C%A$r(B patches/patch-aa $B$H$7$FCV$$$F$*;n$7$/$@$5$$!#(B

--                   /
Thanks,             /__  __
                   / )  )  ) )  /  http://knu.and.or.jp/
Akinori MUSHA aka / (_ /  ( (__(   mailto:knu@and.or.jp

--Multipart_Tue_Aug_17_01:53:38_1999-1
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: attachment; filename="patch-aa"
Content-Transfer-Encoding: 7bit

*** 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 );
  
*** 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")){

--Multipart_Tue_Aug_17_01:53:38_1999-1--
