+2014-04-08 David Lawrence Ramsey <pooka109@gmail.com>
+ * src/nano.c (main): Convert the literal UTF-8 whitespace string into
+ its corresponding byte sequence, and add a comment for it.
+
2014-04-08 Benno Schulenberg <bensberg@justemail.net>
* src/rcfile.c (parse_binding): Melt the binding and unbinding code,
which are very similar, into a single function.
matchbrackets = mallocstrcpy(NULL, "(<[{)>]}");
#ifdef ENABLE_NANORC
- /* If whitespace wasn't specified, set its default value. */
+ /* If whitespace wasn't specified, set its default value. If we're
+ * using UTF-8, it's Unicode 00BB (Right-Pointing Double Angle
+ * Quotation Mark) and Unicode 00B7 (Middle Dot). Otherwise, it's
+ * ">" and ".". */
if (whitespace == NULL) {
#ifdef ENABLE_UTF8
if (using_utf8()) {
- whitespace = mallocstrcpy(NULL, "»·");
+ whitespace = mallocstrcpy(NULL, "\xC2\xBB\xC2\xB7");
whitespace_len[0] = 2;
whitespace_len[1] = 2;
} else