diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-09-07 20:44:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-09-07 20:44:08 (GMT) |
commit | af160d39cd16bfbe6ff0ec0e0bca4b351142f2c5 (patch) | |
tree | ff2a9400e67eb29b0b4af3103a1be1b10839277d /macosx/tkMacOSXFont.c | |
parent | ea9ae2f75bd7c14f819ef221d946ea79efa403bb (diff) | |
download | tk-af160d39cd16bfbe6ff0ec0e0bca4b351142f2c5.zip tk-af160d39cd16bfbe6ff0ec0e0bca4b351142f2c5.tar.gz tk-af160d39cd16bfbe6ff0ec0e0bca4b351142f2c5.tar.bz2 |
Fix [e17b6f008], and the same in a lot of other potential problematic places
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r-- | macosx/tkMacOSXFont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c index d9c1c01..3f247cc 100644 --- a/macosx/tkMacOSXFont.c +++ b/macosx/tkMacOSXFont.c @@ -244,7 +244,7 @@ FindNSFont( NSString *family; if (familyName) { - family = [[[NSString alloc] initWithUTF8String:familyName] autorelease]; + family = [[[TKNSString alloc] initWithTclUtfBytes:familyName length:-1] autorelease]; } else { family = [defaultFont familyName]; } |