diff options
author | naddy <naddy@FreeBSD.org> | 2001-12-05 05:31:54 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2001-12-05 05:31:54 +0800 |
commit | 1414742821dead256ec077b45ac01616e7d35331 (patch) | |
tree | 0375e20343015b5b81cb49e5c6d9fb38253d1ac7 /shells | |
parent | ae99d62a2649f250adb78298435530e8998cee17 (diff) | |
download | freebsd-ports-gnome-1414742821dead256ec077b45ac01616e7d35331.tar.gz freebsd-ports-gnome-1414742821dead256ec077b45ac01616e7d35331.tar.zst freebsd-ports-gnome-1414742821dead256ec077b45ac01616e7d35331.zip |
Fix LC_NUMERIC locale bug.
Submitted by: Alexander N. Kabaev <ak03@gte.com>
Diffstat (limited to 'shells')
-rw-r--r-- | shells/ksh93/Makefile | 1 | ||||
-rw-r--r-- | shells/ksh93/files/patch-src_lib_libast_sfio_sfhdr.h | 16 | ||||
-rw-r--r-- | shells/ksh93/pkg-descr | 5 |
3 files changed, 17 insertions, 5 deletions
diff --git a/shells/ksh93/Makefile b/shells/ksh93/Makefile index 5ce68901b69d..fe666df84f25 100644 --- a/shells/ksh93/Makefile +++ b/shells/ksh93/Makefile @@ -6,6 +6,7 @@ PORTNAME= ksh93 PORTVERSION= ${VERSION:S/-//g} +PORTREVISION= 1 VERSION= 2001-10-31 CATEGORIES= shells MASTER_SITES= http://www.research.att.com/~gsf/download/tgz/ diff --git a/shells/ksh93/files/patch-src_lib_libast_sfio_sfhdr.h b/shells/ksh93/files/patch-src_lib_libast_sfio_sfhdr.h new file mode 100644 index 000000000000..9e153615b13b --- /dev/null +++ b/shells/ksh93/files/patch-src_lib_libast_sfio_sfhdr.h @@ -0,0 +1,16 @@ + +$FreeBSD$ + +--- src/lib/libast/sfio/sfhdr.h.orig Tue Dec 4 21:58:08 2001 ++++ src/lib/libast/sfio/sfhdr.h Tue Dec 4 21:58:52 2001 +@@ -521,8 +521,8 @@ + #define SFSETLOCALE(dp,tp) \ + do if (*(dp) == 0) { \ + Lc_numeric_t* lv = (Lc_numeric_t*)LCINFO(AST_LC_NUMERIC)->data; \ +- *(dp) = lv->decimal; \ +- *(tp) = lv->thousand; \ ++ *(dp) = lv ? lv->decimal : '.'; \ ++ *(tp) = lv ? lv->thousand: '\0'; \ + } while (0) + #else + #if _lib_locale diff --git a/shells/ksh93/pkg-descr b/shells/ksh93/pkg-descr index bf8e86bc812d..ee3150bac1cd 100644 --- a/shells/ksh93/pkg-descr +++ b/shells/ksh93/pkg-descr @@ -11,8 +11,3 @@ in performance. In addition, "sh" scripts can be run on KSH-93 without modification. WWW: http://www.kornshell.com/ - -Known problem: Defining the LC_NUMERIC environment variable, or -any locale setting by which it is implied (LANG, LC_ALL), will cause -ksh93 to crash. LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, -and LC_TIME are safe. |