1 diff -ur lua-5.2.4.orig/src/lctype.h lua-5.2.4/src/lctype.h
2 --- lua-5.2.4.orig/src/lctype.h 2013-04-12 20:48:47.000000000 +0200
3 +++ lua-5.2.4/src/lctype.h 2014-02-13 13:17:33.000000000 +0100
16 ** 'lalpha' (Lua alphabetic) and 'lalnum' (Lua alphanumeric) both include '_'
18 +** all utf-8 chars (greater than 0x7f) are always alphabetic
20 -#define lislalpha(c) testprop(c, MASK(ALPHABIT))
21 -#define lislalnum(c) testprop(c, (MASK(ALPHABIT) | MASK(DIGITBIT)))
22 +#define lislalpha(c) (isalpha(c) || (c) == '_' || (c) > 0x7f)
23 +#define lislalnum(c) (isalnum(c) || (c) == '_' || (c) > 0x7f)
24 #define lisdigit(c) testprop(c, MASK(DIGITBIT))
25 #define lisspace(c) testprop(c, MASK(SPACEBIT))
26 #define lisprint(c) testprop(c, MASK(PRINTBIT))