Locale fixes, header lowercasing removed

This commit is contained in:
Alexander S. Aganichev 2001-03-20 21:05:04 +00:00
parent 48b994a84e
commit 72b435533d
3 changed files with 6 additions and 5 deletions

View File

@ -61,8 +61,7 @@ bool GMsgHeaderEdit::handle_other_keys(gkey& key) {
gkey kk;
if(key < KK_Commands) {
key = key_tolower(key);
kk = SearchKey(key, HeaderKey, HeaderKeys);
kk = SearchKey(key_tolower(key), HeaderKey, HeaderKeys);
if(kk)
key = kk;
}

View File

@ -47,10 +47,12 @@
extern "C" {
#endif
extern char tl[256], tu[256];
inline int tolower(int c) { return tl[c]; }
inline int toupper(int c) { return tu[c]; }
inline int _nls_tolower(int c) { return tl[c]; }
inline int _nls_toupper(int c) { return tu[c]; }
#ifdef __cplusplus
}
#define tolower(a) _nls_tolower((unsigned char)(a))
#define toupper(a) _nls_toupper((unsigned char)(a))
#endif
#endif

View File

@ -84,7 +84,7 @@ int g_init_os(int flags) {
if((cpu.al() == 0xff) and (cpu.ch() > 3))
winapi = ANSIPLUS;
}
#ifdef __DJGPP__
#if 0 // __DJGPP__: get djlocale patch instead
// reload internal djgpp structures for toupper/tolower
int segment, selector;