commit the EBCDIC run-time table conversion code, so it can be reviewed

XXX there’s still the issue of compile-time character conversion, and
XXX that runtime m̲u̲s̲t̲ use a compatible codepage, which we cannot check,
XXX and that we need the POSIX portable character set mapped, which we
XXX decide to not check (due to the above, mostly)
This commit is contained in:
tg
2017-04-28 01:15:51 +00:00
parent 8df7c0c94a
commit d658ad626b
3 changed files with 50 additions and 4 deletions

5
main.c
View File

@@ -34,7 +34,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.340 2017/04/27 23:35:09 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.341 2017/04/28 01:15:50 tg Exp $");
extern char **environ;
@@ -236,6 +236,9 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
ssize_t k;
#endif
#ifdef MKSH_EBCDIC
ebcdic_init();
#endif
set_ifs(TC_IFSWS);
#ifdef __OS2__