Re: [PATCH] CJK ambiguous width for non-Unicode charsets

2010-11-17 Thread Andy Koppe
Documentation change to go with the newlib patch at http://www.cygwin.com/ml/newlib/2010/msg00604.html: * setup2.sgml (setup-locale-ov): Document CJK ambiguous width change for non-Unicode charsets. * new-features.sgml (ov-new1.7.8): Mention CJK ambiguous width change. (Bt

locale initialization issue

2011-05-03 Thread Andy Koppe
Hi, I stumbled across an issues with locale initialization when the "C" locale is specified in the environment. $ cat test.c #include #include #include #include int main(void) { char cs[8]; puts(nl_langinfo(CODESET)); printf("%i\n", wctomb(cs, 0x80)); return 0; } The program doesn't

Add locale.exe option for querying Windows UI languages

2011-10-08 Thread Andy Koppe
The attached patch adds a --interface/-i option to locale.exe that makes the --system/-s and --user/-u options print the respective default UI language instead of the default locale. * locale.cc: Add --interface option for printing Windows default UI languages. For background, her

Re: Add locale.exe option for querying Windows UI languages

2011-10-09 Thread Andy Koppe
On 8 October 2011 16:03, Corinna Vinschen wrote: > > On Oct  8 10:24, Andy Koppe wrote: >> The attached patch adds a --interface/-i option to locale.exe that >> makes the --system/-s and --user/-u options print the respective >> default UI language inste

Re: Add support for creating native windows symlinks

2011-12-04 Thread Andy Koppe
On 4 December 2011 07:07, Russell Davis wrote: > This was discussed before here: > http://cygwin.com/ml/cygwin/2008-03/msg00277.html > > These were the reasons given for not using native symlinks to create > cygwin symlinks, along with my responses: > > - By default, only administrators have the ri

Re: console enhancements: mouse events

2009-11-07 Thread Andy Koppe
2009/11/7 Corinna Vinschen: >> Mintty roughly does the following for Ctrl(+Shift)+symbol combinations: >> - obtain the keymap using GetKeyboardState() >> - set the state of the Ctrl key to released >> - invoke ToUnicode() to get the character code according to the keyboard >> layout >> - if the ch

Re: console enhancements: mouse events

2009-11-08 Thread Andy Koppe
Thomas Wolff: >>>  Note: This works on my home PC (Windows XP Home) but it's not effective >>>  on my work PC (Windows XP Professional) where the mouse wheel scrolls the >>>  Windows console (which it doesn't on the other machine); I don't know  how >>> to disable or configure this. I've come acro

making scanf byte-clean(er)

2010-01-10 Thread Andy Koppe
Attached is a patch for making the scanf format string (more) byte-transparent. It actually couldn't deal with non-ASCII chars at all, even valid ones, due to comparing an 'unsigned char' with a (signed) 'char'. And when encountering an invalid byte, it would go backwards in the format string. Fina

minor doc corrections

2010-01-24 Thread Andy Koppe
Attached is a patch with some minor locale-related doc corrections. Mostly just typos and removing stuff that no longer applies. Andy doc.patch Description: Binary data

[PATCH] internal_setlocale tweak

2010-02-10 Thread Andy Koppe
winsup/cygwin/ChangeLog: * nlsfuncs.cc (internal_setlocale, initial_setlocale): Move check whether charset has changed to internal_setlocale, to avoid unnecessary work when invoked via CW_INT_SETLOCALE. Sufficiently trivial, I hope. Andy int_setlocale.patch Description:

Re: console enhancements: mouse events etc

2010-03-30 Thread Andy Koppe
> How can I enforce printing garbage so I > can test the reset command? echo $'\e(0'

[PATCH] Cygwin: Correct /proc/*/stat for processes without ctty

2022-11-09 Thread Andy Koppe
Hi, I had noticed that selecting or excluding processes without a controlling terminal doesn't work in procps on Cygwin. For example, the mintty process shouldn't appear in the following, as the 'f' (for forest) argument triggers procps's "BSD personality", where processes without a controlling t