aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/mingw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 4077c8d44..4655fe511 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -485,6 +485,7 @@ void qsort_string_vector_case(char **sv, unsigned count) FAST_FUNC;
485 485
486const char *get_busybox_exec_path(void); 486const char *get_busybox_exec_path(void);
487void init_winsock(void); 487void init_winsock(void);
488void init_codepage(void);
488 489
489int has_bat_suffix(const char *p); 490int has_bat_suffix(const char *p);
490int has_exe_suffix(const char *p); 491int has_exe_suffix(const char *p);