diff options
| author | CHOI Junho <cjh@FreeBSD.org> | 2001-03-23 06:54:07 +0000 |
|---|---|---|
| committer | CHOI Junho <cjh@FreeBSD.org> | 2001-03-23 06:54:07 +0000 |
| commit | ef3502c4973d80511bd2dd6bc7a1958718ac0370 (patch) | |
| tree | 3a6d55b1bbfebf2d04edaee0cc83079a86177497 /korean/mkisofs/files/patch-aj | |
| parent | 40b14bc2c0825e8b7d2abc77a2238490df4a3f3c (diff) | |
ko-mkisofs, with Korean charset conversion support, activated.
Diffstat (limited to 'korean/mkisofs/files/patch-aj')
| -rw-r--r-- | korean/mkisofs/files/patch-aj | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/korean/mkisofs/files/patch-aj b/korean/mkisofs/files/patch-aj new file mode 100644 index 000000000000..9e9fcadc63f8 --- /dev/null +++ b/korean/mkisofs/files/patch-aj @@ -0,0 +1,41 @@ +--- lib/cvt.c.orig Wed Sep 8 15:03:20 1999 ++++ lib/cvt.c Sun Feb 25 10:06:50 2001 +@@ -31,7 +31,7 @@ + #include <standard.h> + + #ifdef HAVE_DTOA /* 4.4BSD floating point implementation */ +-extern char *__dtoa __PR((double value, int mode, int ndigit, int *decpt, int *sign, char **ep)); ++extern char *__dtoa __PR((double value, int mode, int ndigit, int *decpt, int *sign, char **ep, char **resultp)); + #endif + + #ifndef HAVE_ECVT +@@ -57,7 +57,13 @@ + static char *buf; + char *bufend; + char *ep; +- char *bp = __dtoa(value, 2, ndigit, decpt, sign, &ep); ++ char *bp; ++ static char *dtoaresult = NULL; ++ ++ free(dtoaresult); ++ dtoaresult = NULL; ++ ++ bp = __dtoa(value, 2, ndigit, decpt, sign, &ep, &dtoaresult); + + if (value == 0.0) { + /* +@@ -102,7 +108,13 @@ + static char *buf; + char *bufend; + char *ep; +- char *bp = __dtoa(value, 3, ndigit, decpt, sign, &ep); ++ char *bp; ++ static char *dtoaresult = NULL; ++ ++ free(dtoaresult); ++ dtoaresult = NULL; ++ ++ bp = __dtoa(value, 3, ndigit, decpt, sign, &ep, &dtoaresult); + + if (value == 0.0) { + /* |
