Locale fixes, header lowercasing removed
This commit is contained in:
parent
48b994a84e
commit
72b435533d
@ -61,8 +61,7 @@ bool GMsgHeaderEdit::handle_other_keys(gkey& key) {
|
|||||||
gkey kk;
|
gkey kk;
|
||||||
|
|
||||||
if(key < KK_Commands) {
|
if(key < KK_Commands) {
|
||||||
key = key_tolower(key);
|
kk = SearchKey(key_tolower(key), HeaderKey, HeaderKeys);
|
||||||
kk = SearchKey(key, HeaderKey, HeaderKeys);
|
|
||||||
if(kk)
|
if(kk)
|
||||||
key = kk;
|
key = kk;
|
||||||
}
|
}
|
||||||
|
@ -47,10 +47,12 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
extern char tl[256], tu[256];
|
extern char tl[256], tu[256];
|
||||||
inline int tolower(int c) { return tl[c]; }
|
inline int _nls_tolower(int c) { return tl[c]; }
|
||||||
inline int toupper(int c) { return tu[c]; }
|
inline int _nls_toupper(int c) { return tu[c]; }
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#define tolower(a) _nls_tolower((unsigned char)(a))
|
||||||
|
#define toupper(a) _nls_toupper((unsigned char)(a))
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ int g_init_os(int flags) {
|
|||||||
if((cpu.al() == 0xff) and (cpu.ch() > 3))
|
if((cpu.al() == 0xff) and (cpu.ch() > 3))
|
||||||
winapi = ANSIPLUS;
|
winapi = ANSIPLUS;
|
||||||
}
|
}
|
||||||
#ifdef __DJGPP__
|
#if 0 // __DJGPP__: get djlocale patch instead
|
||||||
// reload internal djgpp structures for toupper/tolower
|
// reload internal djgpp structures for toupper/tolower
|
||||||
int segment, selector;
|
int segment, selector;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user