lua-users home
lua-l archive

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


It was thus said that the Great Coroutines once stated:
> On Tue, May 13, 2014 at 3:41 PM, Sean Conner <sean@conman.org> wrote:
> 
> >   If you are curious, check out the source code to joe (Joe's Editor),
> > specifically, the files i18n.c and utf8.c, to see just the amount of code
> > required to maybe, hopefully, handle UTF-8.  I have no idea how well it
> > deals with right-to-left languages.
> 
> https://github.com/paul-schwendenman/joe-editor/blob/master/joe/i18n.c
> 
> I am not a fan of the proliferation of wide characters :(

  Well, if you want to handle checking for control characters, spaces, upper
case, lower case, numbers, combining characters or punctuation ...

  -spc (i18n.c and utf8.c compile to about 31k on a 32-bit system ... )