Index: libc/src/uchar/c16rtomb.cpp =================================================================== --- libc/src/uchar/c16rtomb.cpp +++ libc/src/uchar/c16rtomb.cpp @@ -20,21 +20,21 @@ c16 = 0xFFFD; // Invalid Replacement Character } - if (C16 <= 0x7F) { + if (c16 <= 0x7F) { StringSize = 1; s = new char(StringSize); - s[0] = C16 & 0x7F; - } else if (C16 <= 0x7FF) { + s[0] = c16 & 0x7F; + } else if (c16 <= 0x7FF) { StringSize = 2; s = new char(StringSize); - s[0] = 0xC0 | (C16 & ((0x1F << 6) >> 6)); - s[1] = 0x80 | (C16 & 0x3F); - } else if (C16 <= 0xFFFF) { + s[0] = 0xC0 | (c16 & ((0x1F << 6) >> 6)); + s[1] = 0x80 | (c16 & 0x3F); + } else if (c16 <= 0xFFFF) { StringSize = 3; s = new char(StringSize); - s[0] = 0xE0 | (C16 & ((0x0F << 12) >> 12)); - s[1] = 0x80 | (C16 & ((0x3F << 6) >> 6)); - s[2] = 0x80 | (C16 & 0x3F); + s[0] = 0xE0 | (c16 & ((0x0F << 12) >> 12)); + s[1] = 0x80 | (c16 & ((0x3F << 6) >> 6)); + s[2] = 0x80 | (c16 & 0x3F); } return StringSize; }