locale initialization issue

2011-05-04 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 stdlib.h #include stdio.h #include locale.h #include langinfo.h int main(void) { char cs[8]; puts(nl_langinfo(CODESET)); printf(%i\n, wctomb(cs, 0x80));

Re: locale initialization issue

2011-05-04 Thread Corinna Vinschen
On May 4 07:04, Andy Koppe wrote: Hi, I stumbled across an issues with locale initialization when the C locale is specified in the environment. [...] The attached small patch addresses this by starting with the LC_CTYPE locale set to C.UTF-8 and lc_ctype_charset set accordingly too.

Re: initialize local variable wait_return

2011-05-04 Thread Yaakov (Cygwin/X)
On Wed, 2011-05-04 at 02:03 -0400, Christopher Faylor wrote: On Wed, May 04, 2011 at 11:11:52AM +0800, Chiheng Xu wrote: 2011-05-04 Chiheng Xu chiheng...@gmail.com * fhandler.cc (fhandler_base_overlapped::wait_overlapped): initialize local variable wait_return , otherwise, gcc-4.3.4

[PATCH] psignal, psiginfo, sys_siglist

2011-05-04 Thread Yaakov (Cygwin/X)
This patch exports psignal() from newlib (once my corresponding patch is accepted) and implements psiginfo() and sys_siglist[]. The first two are POSIX.1-2008, the latter is in BSD and glibc. Patches for winsup/cygwin and winsup/doc, and a test application, attached. Yaakov 2011-05-04 Yaakov

Re: [PATCH] psignal, psiginfo, sys_siglist

2011-05-04 Thread Corinna Vinschen
On May 4 05:52, Yaakov (Cygwin/X) wrote: This patch exports psignal() from newlib (once my corresponding patch is accepted) and implements psiginfo() and sys_siglist[]. The first two are POSIX.1-2008, the latter is in BSD and glibc. Patches for winsup/cygwin and winsup/doc, and a test

Re: initialize local variable wait_return

2011-05-04 Thread Christopher Faylor
On Wed, May 04, 2011 at 05:17:31AM -0500, Yaakov (Cygwin/X) wrote: On Wed, 2011-05-04 at 02:03 -0400, Christopher Faylor wrote: On Wed, May 04, 2011 at 11:11:52AM +0800, Chiheng Xu wrote: 2011-05-04 Chiheng Xu chiheng...@gmail.com * fhandler.cc

Re: [PATCH] psignal, psiginfo, sys_siglist

2011-05-04 Thread Christopher Faylor
On Wed, May 04, 2011 at 01:18:26PM +0200, Corinna Vinschen wrote: On May 4 05:52, Yaakov (Cygwin/X) wrote: This patch exports psignal() from newlib (once my corresponding patch is accepted) and implements psiginfo() and sys_siglist[]. The first two are POSIX.1-2008, the latter is in BSD and

[PATCH] False positive from access(/proc/registry/..., F_OK)

2011-05-04 Thread Christian Franke
Corinna Vinschen wrote: On Apr 27 12:26, Christian Franke wrote: access(/proc/registry/..., F_OK) returns 0 for all (including nonexistent) entries below a registry key which cannot be opened: ... Problem was likely introduced by fhandler_registry.cc change 1.52:

Re: [PATCH] False positive from access(/proc/registry/..., F_OK)

2011-05-04 Thread Eric Blake
On 05/04/2011 02:09 PM, Christian Franke wrote: Done, tested and attached. Christian { + /* Key does not exist or open failed with EACCESS, + enumerate subkey and value names of parent key. */ EACCES, not EACCESS. -- Eric Blake ebl...@redhat.com

Re: [PATCH] psignal, psiginfo, sys_siglist

2011-05-04 Thread Yaakov (Cygwin/X)
On Wed, 2011-05-04 at 11:13 -0400, Christopher Faylor wrote: The indentation on if and switch is wrong but, other than that minor point, it looks fine. Thanks, fixed before committing. Yaakov

[PATCH] update posix.sgml:std-notimpl

2011-05-04 Thread Yaakov (Cygwin/X)
The bsd_signal, setcontext, and swapcontext symbols were declared obsolete in POSIX.1-2004 and removed from POSIX.1-2008. This patch updates the std-notimpl section of posix.sgml accordingly. Yaakov 2011-05-04 Yaakov Selkowitz yselkowitz@... * posix.sgml (std-notimpl): Remove bsd_signal,