[Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-04 Thread Tim Kosse
Hi, there's a bug in wcsrtombs (mingw-w64-crt/misc/wcrtomb.c) if null is passed as destination buffer. In this case, wcsrtombs does not ignore the len argument. Yet, according to the C99 standard, if the dst is null, the len argument is ignored. The attached patch fixes this bug. Regards, Tim Ko

Re: [Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-04 Thread Tim Kosse
Hi, the reverse function mbsrtowcs (mingw-w64-crt/misc/mbrtowc.c) suffers from the same problem. This second patch fixes this function as well. Regards, Tim Kosse On 2016-01-04 01:19, Tim Kosse wrote: > Hi, > > there's a bug in wcsrtombs (mingw-w64-crt/misc/wcrtomb.c) if null is > passed as des

Re: [Mingw-w64-public] compiling nano-win from linux for windows 7 [done]

2016-01-04 Thread lh_mouse
Thanks for your feedback. FWIW I wouldn't suggest you build nano with '--disable-color' because it will effectively make nano a 'plain text editor' rather than a 'code editor', and it is the only editor I use on Linux, at yet. -- Best regards, lh_m