This is the mail archive of the
cygwin
mailing list for the Cygwin project.
dash is unable to start scripts from non-ASCII paths in non-UTF8 locale
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: All <cygwin at cygwin dot com>
- Date: Thu, 1 Jun 2017 04:08:48 +0300
- Subject: dash is unable to start scripts from non-ASCII paths in non-UTF8 locale
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp3o.mail.yandex.net; dkim=pass header.i=@yandex.ru
- Reply-to: cygwin at cygwin dot com
Greetings, All!
Start native console with login shell,
:~
$ locale && mkdir тест && cd тест && printf '%s\n' '#!/bin/dash' 'echo "Works!"' > test.sh && ls -l test.sh
LANG=ru_RU.CP866
LC_CTYPE="ru_RU.CP866"
LC_NUMERIC="en_US"
LC_TIME="ru_RU.CP866"
LC_COLLATE="ru_RU.CP866"
LC_MONETARY="ru_RU.CP866"
LC_MESSAGES="en_US"
LC_ALL=
-rwxr-xr-x 1 anrdaemon None 26 июн 1 04:06 test.sh
:~/тест
$ ./test.sh
/bin/dash: 0: Can't open ./test.sh
:~/тест
$ bash ./test.sh
Works!
--
With best regards,
Andrey Repin
Thursday, June 1, 2017 03:56:45
Sorry for my terrible english...