This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: UTF-8 in Cygwin console on 1.7


2009/12/9 Thomas Wolff:
> So the #define IGN should go as well...

Yep.

> Actually, I don't really understand this code part:
> * What is the purpose of the lookup table for the switch rather than just
> switching on a few special control characters?

Good question.

> * What is the idea of (randomly?) assigning ERR to some control characters
> and NOR to others?

I wondered about that too.

> * How does the case NOR *work* actually?

Due to the code around line 1530 for dealing with multibyte chars.
Further deepens the mystery regarding the ERR/NOR distinction though.
Do only certain control chars (if any) appear in doublebyte encodings?

> Maybe after clarifying this, the whole snipplet should be cleaned up a
> little bit.

Sounds like a good addition to your console patch.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]