nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] the default whitespace indicators


From: Dan Mahoney, System Admin
Subject: Re: [Nano-devel] the default whitespace indicators
Date: Mon, 10 Mar 2014 14:34:02 -0700 (PDT)
User-agent: Alpine 2.00 (BSF 1167 2008-08-23)

On Mon, 10 Mar 2014, Benno Schulenberg wrote:


On Mon, Mar 10, 2014, at 0:48, Mike Frysinger wrote:
i would think something like > and . would be better for ASCII,

Any more votes for ">" instead of ":"?

and » and · when in a multibyte locale.

How to make nano check whether it's running in a multibyte
locale?  Just have it look at the last four chars of LC_MESSAGES,
to see whether it's "utf8"?

Actually, it seems that nano doesn't check locale.

If you're in a multibyte locale, there's a function (mbstrlen) that will cause » and · to evaluate to being two characters long, but otherwise, they'll evalute to four bytes long and cause an error:

if (mbstrlen(whitespace) != 2 || strlenpt(whitespace) != 2) {
  rcfile_error(N_("Two single-column characters required"));
}

Line 1045, rcfile.c

-Dan

--

"...Somebody fed you sugar.  Shit!"

--Tracy, after noticing Gatorade on my desk.

Ezzi Computers, October 18th 2003
Approx 11PM

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]