Bug TW-278

- Cygwin throws warnings building mk_wcwidth() in wcwidth6.c.
This commit is contained in:
Paul Beckingham 2014-02-15 15:14:08 -05:00
parent 5f4a5bdec7
commit b7760dc3ef
2 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,7 @@ Features
+ TW-255 'Mask' instead of 'iMask' shown in info report (thanks to Benjamin
Weber)
+ TW-261 Easy to create "not deletable" task (thanks to Jan Kunder).
+ TW-278 Cygwin throws warnings building mk_wcwidth() in wcwidth6.c.
+ TW-1255 New testing framework (thanks to Renato Alves).
+ TW-1258 Portuguese Localization (thanks to Renato Alves).
+ TW-1260 New virtual tags YESTERDAY, TOMORROW.

View file

@ -59,6 +59,7 @@
* Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
*/
#include <cmake.h>
#include <wchar.h>
struct interval {
@ -229,8 +230,12 @@ int mk_wcwidth(wchar_t ucs)
(ucs >= 0xfe30 && ucs <= 0xfe6f) || /* CJK Compatibility Forms */
(ucs >= 0xff00 && ucs <= 0xff60) || /* Fullwidth Forms */
(ucs >= 0xffe0 && ucs <= 0xffe6) ||
#ifndef CYGWIN
(ucs >= 0x20000 && ucs <= 0x2fffd) ||
(ucs >= 0x30000 && ucs <= 0x3fffd)));
(ucs >= 0x30000 && ucs <= 0x3fffd)
#endif
)
);
}
int mk_wcswidth(const wchar_t *pwcs, size_t n)