Re: [PATCH] Cygwin: pty: Disable pseudo console if TERM is dumb or not set.

2020-08-26 Thread Takashi Yano via Cygwin-patches
On Wed, 26 Aug 2020 19:36:06 +0200 Corinna Vinschen wrote: > On Aug 26 21:00, Takashi Yano via Cygwin-patches wrote: > > Pseudo console generates escape sequences on execution of non-cygwin > > apps. If the terminal does not support escape sequence, output will > > be garbled. This patch prevents

[PATCH] Cygwin: console: Replace WriteConsoleA() with WriteConsoleW().

2020-08-26 Thread Takashi Yano via Cygwin-patches
- To allow sending non-ASCII chars to console, all WriteConsoleA() are replaced by WriteConsoleW(). Addresses: https://cygwin.com/pipermail/cygwin-patches/2020q3/010476.html --- winsup/cygwin/fhandler_console.cc | 89 --- 1 file changed, 47 insertions(+), 42

Re: [Patch] Fix incorrect code page when setting console title on Win10

2020-08-26 Thread Takashi Yano via Cygwin-patches
On Wed, 26 Aug 2020 19:33:45 +0200 Corinna Vinschen wrote: > On Aug 26 09:30, Johannes Schindelin wrote: > > Hi Corinna, > > > > On Wed, 26 Aug 2020, Corinna Vinschen wrote: > > > > > On Aug 26 16:43, 宫大汉 via Cygwin-patches wrote: > > > > When Cygwin sets console titles on Win10

[PATCH] Cygwin: fhandler_fifo::delete_client_handler: improve efficiency

2020-08-26 Thread Ken Brown via Cygwin-patches
Delete a client handler by swapping it with the last one in the list instead of calling memmove. --- winsup/cygwin/fhandler_fifo.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc index b3c4c4a25..75c8406fe

[PATCH 2/3] Cygwin: Add github action to cross-build on Fedora

2020-08-26 Thread Jon Turney
This helps avoid unpleasant surprises when we come to actually make a release (which are cross-built in this manner) --- .github/workflows/cygwin.yml | 45 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/cygwin.yml diff --git

[PATCH 3/3] Cygwin: Remove .drone.yml

2020-08-26 Thread Jon Turney
tea-ci.org was a CI service for MSYS2, but is no longer operating. --- .drone.yml | 58 -- 1 file changed, 58 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index ad512a031..0

[PATCH 1/3] Cygwin: Add .appveyor.yml

2020-08-26 Thread Jon Turney
This is a slightly more polished version of the configuration being used for CI builds at https://ci.appveyor.com/project/cygwin/cygwin, which is not currently under version control. --- .appveyor.yml | 69 +++ 1 file changed, 69 insertions(+)

[PATCH 0/3] CI update

2020-08-26 Thread Jon Turney
Since we recently had the unpleasant surprise of discovering that Cygwin doesn't build on F32 when trying to make a release, this adds some CI to test that. Open issues: Since there don't seem to be RedHat packages for cocom, this grabs a cocom package from some random 3rd party I found on the

Re: [PATCH] Cygwin: pty: Disable pseudo console if TERM is dumb or not set.

2020-08-26 Thread Corinna Vinschen
Hi Takashi, On Aug 26 21:00, Takashi Yano via Cygwin-patches wrote: > Pseudo console generates escape sequences on execution of non-cygwin > apps. If the terminal does not support escape sequence, output will > be garbled. This patch prevents garbled output in dumb terminal by > disabling pseudo

Re: [Patch] Fix incorrect code page when setting console title on Win10

2020-08-26 Thread Corinna Vinschen
On Aug 26 09:30, Johannes Schindelin wrote: > Hi Corinna, > > On Wed, 26 Aug 2020, Corinna Vinschen wrote: > > > On Aug 26 16:43, 宫大汉 via Cygwin-patches wrote: > > > When Cygwin sets console titles on Win10 (has_con_24bit_colors > > > !con_is_legacy), > > > `WriteConsoleA` is used and causes

Re: [Patch] Fix incorrect code page when setting console title on Win10

2020-08-26 Thread Johannes Schindelin
Hi Corinna, On Wed, 26 Aug 2020, Corinna Vinschen wrote: > On Aug 26 16:43, 宫大汉 via Cygwin-patches wrote: > > When Cygwin sets console titles on Win10 (has_con_24bit_colors > > !con_is_legacy), > > `WriteConsoleA` is used and causes an error if: > > 1. the environment variable of `LANG` is

[PATCH] Cygwin: pty: Disable pseudo console if TERM is dumb or not set.

2020-08-26 Thread Takashi Yano via Cygwin-patches
Pseudo console generates escape sequences on execution of non-cygwin apps. If the terminal does not support escape sequence, output will be garbled. This patch prevents garbled output in dumb terminal by disabling pseudo console. --- winsup/cygwin/spawn.cc | 36

Re: [Patch] Fix incorrect code page when setting console title on Win10

2020-08-26 Thread Corinna Vinschen
Hi, On Aug 26 16:43, 宫大汉 via Cygwin-patches wrote: > When Cygwin sets console titles on Win10 (has_con_24bit_colors > !con_is_legacy), > `WriteConsoleA` is used and causes an error if: > 1. the environment variable of `LANG` is `***.UTF-8` > 2. and the code page of console.exe is not UTF-8 >

[Patch] Fix incorrect code page when setting console title on Win10

2020-08-26 Thread 宫大汉 via Cygwin-patches
When Cygwin sets console titles on Win10 (has_con_24bit_colors !con_is_legacy), `WriteConsoleA` is used and causes an error if: 1. the environment variable of `LANG` is `***.UTF-8` 2. and the code page of console.exe is not UTF-8 1. e.g. on my Computer, it's GB2312, for Chinese text I've done

Re: [PATCH v2 3/3] winsup/doc/faq-api.xml(faq.api.timezone): explain time zone updates

2020-08-26 Thread Corinna Vinschen
On Aug 25 06:57, Brian Inglis wrote: > based on material from t...@iana.org mailing list sources > --- > winsup/doc/faq-api.xml | 29 + > 1 file changed, 25 insertions(+), 4 deletions(-) > > diff --git a/winsup/doc/faq-api.xml b/winsup/doc/faq-api.xml > index