Skip to content

Commit e0dabef

Browse files
gh-136687: Fix the wide-character probe for native curses
The probe declared a wchar_t array whose subscript was mangled by m4 quoting, so it failed to compile and native curses was always detected as narrow. Use a wide string literal instead, with no brackets to quote. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c74914f commit e0dabef

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

configure

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7221,8 +7221,7 @@ AS_VAR_IF([with_curses], [curses], [
72217221
[AC_LINK_IFELSE(
72227222
[AC_LANG_PROGRAM([_CURSES_INCLUDES], [[
72237223
cchar_t wcval;
7224-
wchar_t wch[[2]] = {0};
7225-
setcchar(&wcval, wch, A_NORMAL, 0, NULL);
7224+
setcchar(&wcval, L"x", A_NORMAL, 0, NULL);
72267225
add_wch(&wcval);
72277226
]])],
72287227
[ac_cv_curses_wide=yes],

0 commit comments

Comments
 (0)