Fix incorrect use of `lbc` instead of `lbc_override` (#77)
authorKeno Fischer <kfischer+github@college.harvard.edu>
Wed, 13 Jul 2016 16:33:50 +0000 (12:33 -0400)
committerSteven G. Johnson <stevenj@mit.edu>
Wed, 13 Jul 2016 16:33:50 +0000 (12:33 -0400)
utf8proc.c

index b479750d5a3b2baf9edd40973a3c419285bfa6eb..ba5143a22290bc9ce5b93c3f70d782fb44f84073 100644 (file)
@@ -287,7 +287,7 @@ static utf8proc_bool grapheme_break_extended(int lbc, int tbc, utf8proc_int32_t
   int lbc_override = lbc;
   if (state && *state != UTF8PROC_BOUNDCLASS_START)
     lbc_override = *state;
-  utf8proc_bool break_permitted = grapheme_break_simple(lbc, tbc);
+  utf8proc_bool break_permitted = grapheme_break_simple(lbc_override, tbc);
   if (state) {
     // Special support for GB 12/13 made possible by GB999. After two RI
     // class codepoints we want to force a break. Do this by resetting the