aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-02-02 15:57:59 +0000
committerRon Yorston <rmy@pobox.com>2019-02-02 16:21:12 +0000
commit93a63809f9146e39a1c36bdccdfb8ef3b7046c98 (patch)
tree41adedb1f386dce9c163ff1bc634a725e8e1c8b8 /libbb
parent0e26e2ff3b87f8db635d3c7dca23f441a3961fd2 (diff)
downloadbusybox-w32-93a63809f9146e39a1c36bdccdfb8ef3b7046c98.tar.gz
busybox-w32-93a63809f9146e39a1c36bdccdfb8ef3b7046c98.tar.bz2
busybox-w32-93a63809f9146e39a1c36bdccdfb8ef3b7046c98.zip
win32: add support for the euro currency symbol
The euro currency symbol was added to some OEM code pages. See: https://www.aivosto.com/articles/charsets-codepages-dos.html Add a configuration option (enabled by default) to support this. When enabled: - The read_key() function requests wide character key events. This allows the euro symbol to be entered regardless of the console OEM code page, though it needs to be available in the ANSI code page. - Conversions between OEM and ANSI code pages in winansi.c are modified to work around a bug in the Microsoft routines. - If the OEM code page is 850 when BusyBox starts it's changed to 858. This is the only currently supported OEM code page. Also, the shell read builtin is modified to use read_key() whenever input is being taken from the console.
Diffstat (limited to 'libbb')
-rw-r--r--libbb/appletlib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 8efb1754a..921883475 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -1221,6 +1221,9 @@ int main(int argc UNUSED_PARAM, char **argv)
1221 break; 1221 break;
1222 } 1222 }
1223 } 1223 }
1224# if ENABLE_FEATURE_EURO
1225 init_codepage();
1226# endif
1224#endif 1227#endif
1225 1228
1226#if defined(__MINGW64_VERSION_MAJOR) 1229#if defined(__MINGW64_VERSION_MAJOR)