File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,19 @@ if(TARGET Intl::Intl)
90
90
check_library_exists(Intl::Intl dngettext "" HAVE_DNGETTEXT)
91
91
check_library_exists(Intl::Intl dcngettext "" HAVE_DCNGETTEXT)
92
92
check_library_exists(Intl::Intl bind_textdomain_codeset "" HAVE_BIND_TEXTDOMAIN_CODESET)
93
+
94
+ # Create a symbolic link when intl is built into musl C library. The gettext
95
+ # functions there ignore the codeset suffix on directories like 'en_US.UTF-8';
96
+ # instead they look only in 'en_US'.
97
+ if (Intl_IS_BUILT_IN AND PHP_C_STANDARD_LIBRARY STREQUAL "musl" )
98
+ message (STATUS "Patching tests: symlinking en_US.UTF-8 messages" )
99
+ file (
100
+ CREATE_LINK
101
+ en_US.UTF-8
102
+ ${CMAKE_CURRENT_SOURCE_DIR} /tests/locale/en_US
103
+ SYMBOLIC
104
+ )
105
+ endif ()
93
106
endif ()
94
107
95
108
configure_file (cmake/config.h.in config.h)
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ index 19be96087d..58a83dfb68 100644
28
28
indent_style = space
29
29
30
30
diff --git a/.gitignore b/.gitignore
31
- index d54334f599..fed3639dfd 100644
31
+ index 52dde98ed4..5783dd2285 100644
32
32
--- a/.gitignore
33
33
+++ b/.gitignore
34
- @@ -287 ,9 +287 ,58 @@ tmp-php.ini
34
+ @@ -290 ,9 +290 ,58 @@ tmp-php.ini
35
35
/junit.out.xml
36
36
/.ccache/
37
37
You can’t perform that action at this time.
0 commit comments