mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
If for some reason do_text() fails to translate from Unicode to the font
encoding, have it go through the rest of its motions with an empty string anyway, so as to at least give a sensible empty box of the right colour. If SetFallbackUnicodeToText() fails, switch over to using the charset library, hence avoiding problems in do_text(). If the version of the Unicode Converter we're using doesn't understand about interrupt-safe fallback functions, don't try to tell it we've got one. This prevents SetFallbackUnicodeToText() from failing on systems with old Unicode Converters. [originally from svn r2414]
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: mac.c,v 1.13 2003/01/01 11:45:43 ben Exp $ */
|
||||
/* $Id: mac.c,v 1.14 2003/01/02 00:33:40 ben Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1999 Ben Harris
|
||||
* All rights reserved.
|
||||
@ -157,6 +157,7 @@ static void mac_startup(void) {
|
||||
mac_gestalts.encvvers = 0;
|
||||
else {
|
||||
mac_gestalts.encvvers = (*ti)->tecVersion;
|
||||
mac_gestalts.uncvattr = (*ti)->tecUnicodeConverterFeatures;
|
||||
DisposeHandle((Handle)ti);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user