1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00
cde/src/cmd/ksh93/features
Martijn Dekker c828ea8d0d Fix typeset -u/-l on NetBSD
On NetBSD, for some reason, the wctrans(3) and towctrans(3) C
library functions exist, but have no effect; the "toupper" and
"tolower" maps don't even translate case for ASCII, never mind wide
characters. This kills 'typeset -u' and 'typeset -l' on ksh, which
was the cause of most of the regression test failures on NetBSD.
Fallback versions for these functions are provided in init.c, but
were not being used on NetBSD because the feature test detected the
presence of these functions in the C library.

src/cmd/ksh93/features/locale:
- Replace the simple test for the presence of wctrans(3),
  towctrans(3), and the wctrans_t type by an actual feature test
  that checks that these functions not only compile, but are also
  capable of changing an ASCII 'q' to upper case and back again.

src/cmd/ksh93/sh/init.c: towctrans():
- Add wide character support to the fallback function, for whatever
  good that may do; on NetBSD, the wide-character towupper(3) and
  towlower(3) functions only change case for ASCII.
2021-05-18 18:26:33 +02:00
..
cmds Add new 'nobackslashctrl' shell option; other minor editor tweaks 2021-02-16 01:29:00 +00:00
dynamic Remove code related to long-dead 3DFS research project 2020-06-12 01:45:17 +02:00
externs cleanup: remove legacy code for systems without fork(2) 2021-03-21 06:39:32 +00:00
locale Fix typeset -u/-l on NetBSD 2021-05-18 18:26:33 +02:00
math.sh Back port ksh93v- float, int, and exp10 changes from math.tab (#299) 2021-05-08 04:43:37 +01:00
options Add NOECHOE and TEST_L to the list of SHOPT options (#242) 2021-03-24 20:14:17 +00:00
poll Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
rlimits Build fix for Linux i386 2021-01-31 23:47:43 +00:00
setjmp Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
sigfeatures Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
time Fix the max precision of the 'time' keyword (#72) 2020-07-14 22:48:04 +01:00
ttys Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00