From mint-bounce@lists.fishpool.fi Mon Jan 18 08:40:30 2010 MIME-Version: 1.0 X-Mailer: AfterLogic WebMail Pro PHP X-Originating-IP: 217.40.83.198 X-Priority: 3 (Normal) Message-ID: <5b1alp8.2d598e64b31e1c377efd43e185415901@secure.freeola.com> From: p.slegg@scubadivers.co.uk To: mint@lists.fishpool.fi Subject: [MiNT] wide characters Date: Mon, 18 Jan 2010 13:38:02 +0000 (GMT) Content-Type: text/plain; charset="utf-8" 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 o0IDeTix028140 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 size) 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 react. Peter