Re: [PATCH 1/2] libgit.a: add some UTF-8 handling functions
- From
- Alexander Litvinov <litvinov2004@gmail.com>
- Date
- Dec 25, 2006, 04:03 UTC
- Message-ID
- <200612251003.55018.litvinov2004@gmail.com>
- In-Reply-To
- <Pine.LNX.4.63.0612222319230.19693@wbgn013.biozentrum.uni-wuerzburg.de>
> > > To me, characters are the symbols occupying one "column" each. Bytes > > > are the 8-bit thingies that you usually use to encode the characters.
You can check man 3 wcwidth: wcwidth - determine columns needed for a wide character
We possible could convert utf-8 encoded string into wchar_t[] and use that function.