Skip to content

Commit 0cc57ca

Browse files
author
jan.nijtmans
committed
Fix [1da19a69f8]: Backspace crashes 9.0 interpreter on FreeBSD
2 parents dead5b2 + 070f068 commit 0cc57ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

generic/tkIcu.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ Icu_Init(
287287
icu_fns.name = (fn_icu_ ## name) \
288288
Tcl_FindSymbol(NULL, icu_fns.lib, symbol)
289289
ICU_SYM(open);
290+
if (!icu_fns.open && *icuversion) {
291+
/* FreeBSD doesn't append the ICU version to the symbol name, see [1da19a69f8] */
292+
*icuversion = 0;
293+
ICU_SYM(open); /* try again without version suffix */
294+
}
290295
ICU_SYM(close);
291296
ICU_SYM(preceding);
292297
ICU_SYM(following);

macosx/tkMacOSXTest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ TkplatformtestInit(
5252
*/
5353

5454
testsAreRunning = 1;
55-
55+
5656
/*
5757
* Add commands for platform specific tests on MacOS here.
5858
*/

0 commit comments

Comments
 (0)