Greetings, Michael Shay! Please bottom post in this mailing list.
> Doesn't help. I tried 65001 (UTF-8): Because you're confusing things. chcp has nothing to do with LANG or LC_*. Et vice versa. chcp sets console code page for native console applications. Only for those supporting it. Many do not. LANG sets output parameters for Cygwin applications (and other programs that look for it, but these are few). > ### SET CP TO UTF-8, 65001 > $cygwin_charset_test.ksh > Old CP 65001 > locale on entry > LANG= > LC_CTYPE="C.UTF-8" > LC_NUMERIC="C.UTF-8" > LC_TIME="C.UTF-8" > LC_COLLATE="C.UTF-8" > LC_MONETARY="C.UTF-8" > LC_MESSAGES="C.UTF-8" > LC_ALL= > ### CP SET TO 65001 > Active code page: 65001 > locale changed to > LANG=en_US.CP1252 > LC_CTYPE="en_US.CP1252" > LC_NUMERIC="en_US.CP1252" > LC_TIME="en_US.CP1252" > LC_COLLATE="en_US.CP1252" > LC_MONETARY="en_US.CP1252" > LC_MESSAGES="en_US.CP1252" > LC_ALL=en_US.CP1252 > Running WIN32 pgm > Transcoding using Cygwin codepage: 1252 > Input widechar string: > lpw[0] = Z - 5A > lpw[1] = - F0C7 > wmain: Z? > Active code page: 65001 > and 1252 > ### SET CP TO 1252 > $cygwin_charset_test.ksh > Old CP 65001 > locale on entry > LANG= > LC_CTYPE="C.UTF-8" > LC_NUMERIC="C.UTF-8" > LC_TIME="C.UTF-8" > LC_COLLATE="C.UTF-8" > LC_MONETARY="C.UTF-8" > LC_MESSAGES="C.UTF-8" > LC_ALL= > ### CP SET TO 1252 > Active code page: 1252 > locale changed to > LANG=en_US.CP1252 > LC_CTYPE="en_US.CP1252" > LC_NUMERIC="en_US.CP1252" > LC_TIME="en_US.CP1252" > LC_COLLATE="en_US.CP1252" > LC_MONETARY="en_US.CP1252" > LC_MESSAGES="en_US.CP1252" > LC_ALL=en_US.CP1252 > Running WIN32 pgm > Transcoding using Cygwin codepage: 1252 > Input widechar string: > lpw[0] = Z - 5A > lpw[1] = - F0C7 > wmain: Z? > Active code page: 65001 -- With best regards, Andrey Repin Monday, August 3, 2020 20:36:16 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple