From 8dbfb77890e8a26e7f77074e1b84eaab3dac4c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Wed, 13 Dec 2023 12:26:12 -0500 Subject: [PATCH] `tolower()` on terminfo directories (#1009) Fixes the ncurses build on my M1 Mac. Required a make clean. --- third_party/ncurses/read_entry.c | 4 ++-- usr/share/terminfo/{A => a}/Apple_Terminal | Bin 2 files changed, 2 insertions(+), 2 deletions(-) rename usr/share/terminfo/{A => a}/Apple_Terminal (100%) diff --git a/third_party/ncurses/read_entry.c b/third_party/ncurses/read_entry.c index fb19c321e..d481d924f 100644 --- a/third_party/ncurses/read_entry.c +++ b/third_party/ncurses/read_entry.c @@ -28,7 +28,7 @@ __static_yoink("usr/share/terminfo/8/8510"); __static_yoink("usr/share/terminfo/9/955-hb"); __static_yoink("usr/share/terminfo/9/955-w"); __static_yoink("usr/share/terminfo/9/9term"); -__static_yoink("usr/share/terminfo/A/Apple_Terminal"); +__static_yoink("usr/share/terminfo/a/Apple_Terminal"); __static_yoink("usr/share/terminfo/a/a210"); __static_yoink("usr/share/terminfo/a/a80"); __static_yoink("usr/share/terminfo/a/a980"); @@ -3445,7 +3445,7 @@ make_dir_filename(char *filename, if (need <= limit) { _nc_SPRINTF(filename, _nc_SLIMIT(limit) - "%s/" LEAF_FMT "/%s", path, *name, name); + "%s/" LEAF_FMT "/%s", path, tolower(*name), name); result = TRUE; } } diff --git a/usr/share/terminfo/A/Apple_Terminal b/usr/share/terminfo/a/Apple_Terminal similarity index 100% rename from usr/share/terminfo/A/Apple_Terminal rename to usr/share/terminfo/a/Apple_Terminal