Skip to content

Commit

Permalink
Missing needed TCL_COMBINE flag (only really needed when running with…
Browse files Browse the repository at this point in the history
… Tcl 9.0)
  • Loading branch information
jan.nijtmans committed Nov 30, 2023
1 parent 226daa1 commit 8fd51a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions generic/tkInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
# define Tcl_UtfToWCharDString ((WCHAR * (*)(const char *, int len, Tcl_DString *))Tcl_UtfToUniCharDString)
# define Tcl_Char16ToUtfDString Tcl_UniCharToUtfDString
# define Tcl_UtfToChar16DString Tcl_UtfToUniCharDString
# define TCL_COMBINE 0
#endif

#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
Expand Down
2 changes: 1 addition & 1 deletion macosx/tkMacOSXFont.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static int CreateNamedSystemFont(Tcl_Interp *interp,
Tcl_DStringSetLength(&_ds, 3 * [_string length]);
p = Tcl_DStringValue(&_ds);
for (index = 0; index < [_string length]; index++) {
p += Tcl_UniCharToUtf([_string characterAtIndex: index], p);
p += Tcl_UniCharToUtf([_string characterAtIndex: index]|TCL_COMBINE, p);
}
Tcl_DStringSetLength(&_ds, (Tcl_Size)(p - Tcl_DStringValue(&_ds)));
}
Expand Down

0 comments on commit 8fd51a3

Please sign in to comment.