From mint-bounce@lists.fishpool.fi Mon Jan 18 17:23:47 2010 To: From: Peter Slegg Subject: Re: [MiNT] wide characters Reply-To: Peter Slegg X-Mailer: MyMAIL Rev:1.91.13668 (Atari/(STiK/STinG/GlueSTiK)) X-Hardware: Atari Milan MIME-Version: 1.0 Date: Sat, 18 Jan 2010 22:21:32 +0200 (GMT) Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal Message-Id: <000bba8a.01a776d63a6c@smtp.freeola.net> References: <5b1alp8.2d598e64b31e1c377efd43e185415901@secure.freeola.com> In-Reply-To: 5b1alp8.2d598e64b31e1c377efd43e185415901@secure.freeola.com X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: p.slegg@scubadivers.co.uk Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o0IMNkC1024171 On Mon, 18 Jan 2010 13:38:02 , p.slegg@scubadivers.co.uk wrote: > > I remember a discussion about wide chars a year or 2 ago but I wasn't > really following it. > > I am looking through more of the Highwire code and in the forms textareas > they are handled as WCHAR > > #ifndef WCHAR > typedef unsigned short WCHAR; /* 16-bit character, for BICS or Unicode */ > #define WCHAR WCHAR > #endif > > I'd like to be able to search these arrays for non alpha-num characters, > just for the basic task of Ctrl-Left & Ctrl-Right handling. > > http://www.gnu.org/software/libtool/manual/libc/String_002fArray-Comparison. > html > > Are the wide string comparisons available on Mint ? > eg Function: int wcsncmp (const wchar_t *ws1, const wchar_t *ws2, size_t si > ze) > > Will they work with the above unsigned short definition or would HW have to > be > changed to use wchar_t ? > > I think the two types might be equivalent but I don't know how gcc will reac > t. > > Peter > > I have added libutf8-devel to my system. This adds headers to /usr/include/utf8 I've added #include in the code but how do I add this to the include path ? Peter