chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unicode_gc_cat -> unicode_General_Category
[disorder]
/
lib
/
charset.c
diff --git
a/lib/charset.c
b/lib/charset.c
index 9d77adcca35f1c462153d7fad35a20266205e94a..c763d1070a675cdbf0cf16a9bae9b98e447663f2 100644
(file)
--- a/
lib/charset.c
+++ b/
lib/charset.c
@@
-183,7
+183,7
@@
static int combining(int c) {
if(c < UNICODE_NCHARS) {
const struct unidata *const ud = &unidata[c / UNICODE_MODULUS][c % UNICODE_MODULUS];
if(c < UNICODE_NCHARS) {
const struct unidata *const ud = &unidata[c / UNICODE_MODULUS][c % UNICODE_MODULUS];
- return ud->g
c == unicode_gc
_Mn || ud->ccc != 0;
+ return ud->g
eneral_category == unicode_General_Category
_Mn || ud->ccc != 0;
}
/* Assume unknown characters are noncombining */
return 0;
}
/* Assume unknown characters are noncombining */
return 0;