summaryrefslogtreecommitdiff
path: root/src/fl_utf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_utf.c')
-rw-r--r--src/fl_utf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fl_utf.c b/src/fl_utf.c
index fbfc779f9..d18a6a38d 100644
--- a/src/fl_utf.c
+++ b/src/fl_utf.c
@@ -124,10 +124,10 @@ static unsigned short cp1252[32] = {
unexpectedly 1 will work:
\code
- if (*p & 0x80) { // what should be a multibyte encoding
+ if (*p & 0x80) { // what should be a multibyte encoding
code = fl_utf8decode(p,end,&len);
- if (len<2) code = 0xFFFD; // Turn errors into REPLACEMENT CHARACTER
- } else { // handle the 1-byte utf8 encoding:
+ if (len<2) code = 0xFFFD; // Turn errors into REPLACEMENT CHARACTER
+ } else { // handle the 1-byte utf8 encoding:
code = *p;
len = 1;
}