aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorflathill <flathill@FreeBSD.org>1999-08-23 12:45:06 +0800
committerflathill <flathill@FreeBSD.org>1999-08-23 12:45:06 +0800
commit142c6d498e48c3c41ed5a78bf99ba6f5188b9954 (patch)
treedf62ed77140eda02ce1b0e1720efd696c406b303 /japanese
parentbcfbb07c641468132659011c425d54d9f3458cc1 (diff)
downloadfreebsd-ports-gnome-142c6d498e48c3c41ed5a78bf99ba6f5188b9954.tar.gz
freebsd-ports-gnome-142c6d498e48c3c41ed5a78bf99ba6f5188b9954.tar.zst
freebsd-ports-gnome-142c6d498e48c3c41ed5a78bf99ba6f5188b9954.zip
Add a couple of functions, EUC->SJIS and SJIS->EUC conversion.
PR: ports/13154 Submitted by: knu@and.or.jp
Diffstat (limited to 'japanese')
-rw-r--r--japanese/libjcode/files/patch-aa42
1 files changed, 42 insertions, 0 deletions
diff --git a/japanese/libjcode/files/patch-aa b/japanese/libjcode/files/patch-aa
new file mode 100644
index 000000000000..3e28f0ffe5e6
--- /dev/null
+++ b/japanese/libjcode/files/patch-aa
@@ -0,0 +1,42 @@
+*** 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];