Commit cf71578c authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Fixing compilation with --disable-utf8.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4690 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
2014-03-27 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (main) - Fix compilation with --disable-utf8.
2014-03-27 Mike Frysinger <vapier@gentoo.org>.
* configure.ac - Make --disable-nanorc with --enable-color barf.
* configure.ac - Allow --disable-utf8 and --enable-utf8 to work.
......
......@@ -2563,11 +2563,14 @@ int main(int argc, char **argv)
#if !defined(NANO_TINY) && defined(ENABLE_NANORC)
/* If whitespace wasn't specified, set its default value. */
if (whitespace == NULL) {
#ifdef ENABLE_UTF8
if (using_utf8()) {
whitespace = mallocstrcpy(NULL, "»·");
whitespace_len[0] = 2;
whitespace_len[1] = 2;
} else {
} else
#endif
{
whitespace = mallocstrcpy(NULL, ">.");
whitespace_len[0] = 1;
whitespace_len[1] = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment