This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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...

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]