[Top][All Lists]

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

Re: Internationalising strings

From: John Darrington
Subject: Re: Internationalising strings
Date: Tue, 13 Jun 2006 08:12:40 +0800
User-agent: Mutt/1.5.9i

On Mon, Jun 12, 2006 at 03:29:02PM -0700, Ben Pfaff wrote:
     It is clearly not right to translate case data into wide strings,
     because they do not necessarily contain character data; they may
     simply be binary octets.

Absolutely.  It's important to distinguish between strings and arrays
of octets.  The only mechanism that converts case data to strings is
data_out() when the format type happens to be A or AHEX.  In fact, it
might be worth typedefing a special symbol for case data, eg

typedef unsigned char case_datum_t;

It'd make it clear when something is not to be considered as a string.     

     > Now if only we'd used C++, then we could simply overload the *
     > operator with a call to mbui_cur, and the *++ operator with
     > mbui_advance ..... 
     I'm going to ignore that comment.  It raises too many strong,
     conflicting emotions.

Very wise!


PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]