[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!
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature
- new string library, Ben Pfaff, 2006/06/09
- Re: new string library, John Darrington, 2006/06/09
- Re: new string library, Ben Pfaff, 2006/06/10
- Internationalising strings [was: Re: new string library], John Darrington, 2006/06/11
- Re: Internationalising strings, Ben Pfaff, 2006/06/12
- Re: Internationalising strings, John Darrington, 2006/06/12
- Re: Internationalising strings, Ben Pfaff, 2006/06/12
- Re: Internationalising strings,
John Darrington <=
- Re: Internationalising strings, John Darrington, 2006/06/12