[liblouis-liblouisxml] widechar vs utf-16/utf-32

  • From: Christian Egli <christian.egli@xxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 02 Jul 2012 12:44:27 +0200

Hi all

I was trying to enhance the test code in test/brl_checks.c so that test
code can use utf-8 strings instead of ascii with \xhhhh encodings. For
that I was trying some code from gnulib to convert utf-8 to utf-16 as I
thought widechar was basically ucs-2 (which was superseded by
utf-16[1]). Now my code doesn't work. This could have many reasons but
the question is of course: is the widechar type really utf-16? Or is it
maybe utf-16 with little endian? Or is it something else altogether?

Thanks
Christian

Footnotes: 
[1]  http://en.wikipedia.org/wiki/UTF-16
-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland

-----
Tag der offenen Tuer
Die SBS laedt Sie herzlich ein: 30. Juni 2012 von 9 bis 16 Uhr.
Mehr Informationen erhalten Sie unter www.sbs.ch/offenetuer
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: