widechar is defined as unsigned short unless enable-ucs4 has been specified, in which case it is defined as unsigned int. John On Mon, Jul 02, 2012 at 12:44:27PM +0200, Christian Egli wrote: > 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 -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com