tcsh: fix Unicode handling behavior

This commit is contained in:
aeiouaeiouaeiouaeiouaeiouaeiou
2025-11-21 10:23:48 +03:00
committed by Renee Otten
parent 70bdbe70bb
commit 8a064a70dd
2 changed files with 19 additions and 1 deletions
+8 -1
View File
@@ -6,7 +6,7 @@ PortGroup github 1.0
github.setup tcsh-org tcsh 6_24_16 TCSH
github.tarball_from archive
version [string map {_ .} ${github.version}]
revision 0
revision 1
categories shells
license BSD
maintainers nomaintainer
@@ -24,6 +24,13 @@ checksums rmd160 f69b44e9a96be4e771e7adb76314e623d2e39d1c \
sha256 aa8b6eeca8b93db659a7ebf421a7089b3f7f8457deba34170cd146b92fe60546 \
size 959417
# https://github.com/tcsh-org/tcsh/issues/117
# https://github.com/tcsh-org/tcsh/issues/121
# Version 6.24.14 and newer contain a regression that prevents tcsh
# from seeing paths and files containing emoji
# Remove this patch only if it is fixed in the upstream
patchfiles-append fix-unicode-handling-behavior.patch
destroot.target install install.man
depends_lib port:libiconv \
port:ncurses
@@ -0,0 +1,11 @@
--- config_f.h
+++ config_f.h
@@ -64,7 +64,7 @@
*/
#if defined (SHORT_STRINGS) && defined (NLS) && !defined (WINNT_NATIVE) && !defined(_OSD_POSIX) && SIZEOF_WCHAR_T > 1
# define WIDE_STRINGS
-# if SIZEOF_WCHAR_T <= 4
+# if SIZEOF_WCHAR_T < 4
# define UTF16_STRINGS
# endif
#endif