Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 1999 09:27:17 -0700 (PDT)
From:      knu@and.or.jp
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/13154: Update port: japanese/libjcode
Message-ID:  <19990815162717.D2E5615137@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         13154
>Category:       ports
>Synopsis:       Update port: japanese/libjcode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 15 09:30:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Akinori MUSHA aka knu
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
Advanced Network Daemons
>Environment:
>Description:
Just added a couple of functions, EUC->SJIS and SJIS->EUC conversion.
This update is required by the new port: japanese/gnome-icu.

Put the following as patches/patch-aa.

*** jlib.h	1999/07/11 15:47:33	1.1.1.1
--- jlib.h	1999/07/11 16:51:11	1.1.1.1.2.2
***************
*** 14,17 ****
--- 14,19 ----
  extern char *toStringJIS(char *str);
  extern char *toStringEUC(char *str);
  extern char *toStringSJIS(char *str);
+ extern char *toStringEUCfromSJIS(char *str);
+ extern char *toStringSJISfromEUC(char *str);
  
*** libjcode.c	1999/07/11 15:47:33	1.1.1.1
--- libjcode.c	1999/07/11 16:51:11	1.1.1.1.2.3
***************
*** 494,499 ****
--- 494,520 ----
  }
  
  
+ char *toStringEUCfromSJIS(char *str) {
+   unsigned char *buf;
+ 
+   buf = _set_buffer(str);
+ 
+   _shift2euc((unsigned char *)str, buf);
+ 
+   return (char *)_replace_buffer(buf);
+ }
+ 
+ char *toStringSJISfromEUC(char *str) {
+   unsigned char *buf;
+ 
+   buf = _set_buffer(str);
+ 
+   _euc2shift((unsigned char *)str, buf);
+ 
+   return _replace_buffer(buf);
+ }
+ 
+ 
  char *test(char *str) {
    static char buffer[BUFSIZ];
    

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990815162717.D2E5615137>