[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cygwin Package mingw64-x86_64-gettext 0.22 mingw sh ==dash
From: |
Brian Inglis |
Subject: |
Cygwin Package mingw64-x86_64-gettext 0.22 mingw sh ==dash |
Date: |
Sun, 18 Jun 2023 13:50:26 -0600 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
Hi Bruno,
Building Cygwin Package mingw gettext 0.22 got a problem running configure with
sh == dash, in latest gettext 0.22 gettext-runtime/intl/configure and elsewhere
handling localedir converting to localedir_c/localedir_c_make all containing
Windows paths, especially under Cygwin, as you will see, demonstrated in the
attached script and log, explained in the attached patch for configure.
Under sh == dash echo \0## \b \t \n \v \f \c are escapes,
also \c as in \cygwin in Windows path suppresses output as EoL,
so Windows paths containing \c as in \cygwin are truncated:
use printf "%s" "$gl" instead of echo "$gl"!
I have not yet found where this transformation is generated from (some m4?), so
any pointers would help.
Other workarounds may be needed under other shells, depending on echo escapes
and printf availability, perhaps a $gl_safe_echo or $SAFE_ECHO?
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
gl_intl_localedir_mingw_dash_exp.log
Description: Text document
gl_intl_localedir_mingw_dash_exp.sh
Description: Text document
gettext-0.22-gettext-runtime-intl-configure-sh-printf-Windows-path.patch
Description: Text document
- Cygwin Package mingw64-x86_64-gettext 0.22 mingw sh ==dash,
Brian Inglis <=