public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Mg3a - a version of Mg2a developed on Cygwin
Date: Thu, 24 Feb 2011 11:55:00 -0000	[thread overview]
Message-ID: <20110224115511.GU9392@calimero.vinschen.de> (raw)
In-Reply-To: <epgcm65b24sp2i6eign548lr7s5vl5kbqb@4ax.com>

On Feb 24 12:40, Bengt Larsson wrote:
> Corinna Vinschen wrote:
> >> Using wcswidth isn't very useful in the editor because it has special
> >> requirements, like showing control characters with ^C.
> >
> >Well, it's not really such a big problem to special case wide char
> >control values and just call wcswidth otherwise...
> 
> Oh I see. wcwidth takes a wchar_t. Handily, Kuhn's implementation takes
> an UCS character. Now I understand what you mean by wcswidth.

Yeah, newlibs wcswidth combines UTF-16 surrogates into UCS-32 chars
and calls the internal __wcwidth function, which is basically Kuhn's
code, and which takes a wint_t as parameter.  Since wint_t is 32 bit...
Of course, this trick doesn't work for wcwidth, which will blindly
call __wcwidth with every incoming surrogate half.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

  reply	other threads:[~2011-02-24 11:55 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23  8:57 Bengt Larsson
2011-02-23  9:11 ` Bengt Larsson
2011-02-23  9:29   ` Corinna Vinschen
2011-02-23  9:33     ` Bengt Larsson
2011-02-23 18:25 ` Buchbinder, Barry (NIH/NIAID) [E]
2011-02-23 18:53   ` Andrew Schulman
2011-02-23 19:36     ` Bengt Larsson
2011-02-24  8:56       ` Corinna Vinschen
2011-02-24 10:56         ` Bengt Larsson
2011-02-24 11:15           ` Corinna Vinschen
2011-02-24 11:40             ` Bengt Larsson
2011-02-24 11:55               ` Corinna Vinschen [this message]
2011-02-24 12:16             ` Andy Koppe
2011-02-24 18:51               ` Bengt Larsson
2011-02-25  2:24                 ` Cyrille Lefevre
2011-02-25  2:25                   ` Cyrille Lefevre
2011-02-25  6:48                     ` Bengt Larsson
2011-02-25  6:47                   ` Bengt Larsson
2011-02-25  6:55                     ` Kenneth Wolcott
2011-02-25 14:09                       ` Bengt Larsson
2011-02-25 21:46                         ` Bengt Larsson
2011-02-26  2:48                           ` Kenneth Wolcott
2011-02-24 11:19           ` Bengt Larsson
2011-02-24 11:51             ` Corinna Vinschen
2011-02-24 14:48               ` Eric Blake
2011-02-25  8:05         ` wcwidth and terminals [Re: Mg3a - a version of Mg2a developed on Cygwin] Thomas Wolff
2011-02-25 11:06           ` Corinna Vinschen
2011-02-26  9:52             ` Andy Koppe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110224115511.GU9392@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).