dash is unable to start scripts from non-ASCII paths in non-UTF8 locale

Andrey Repin anrdaemon@yandex.ru
Thu Jun 1 01:20:00 GMT 2017


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...B‹KCB”›Ø›[H™\ܝΈ‹ËØÞYÝÚ[‹˜ÛÛKܛ؛[\Ëš[B‘TNˆ‹ËØÞYÝÚ[‹˜ÛÛKÙ˜\KÃB‘ØÝ[Y[][ÛŽˆ‹ËØÞYÝÚ[‹˜ÛÛKÙØÜËš[B•[œÝXœØÜšX™H[™›Îˆ‹ËØÞYÝÚ[‹˜ÛÛKÛ[ÈÝ[œÝXœØÜšX™K\Ú[\CBƒB


More information about the Cygwin mailing list