utf8 vs ucs2

Elrond elrond at samba.org
Tue May 22 18:07:18 GMT 2001

On Tue, May 22, 2001 at 08:24:27PM +0900, Ryo Kawahara wrote:
> typedef struct sambastring_tag
> {
> 	UINT16* buffer;
> 	int length;
> 	...
> } sambastring;
> void sambastring_get_os_encode(sambastring* obj, char* out);
> void sambastring_put_os_encode(sambastring* obj, char* in);
> void sambastring_get_wire_encode(sambastring* obj, uint16* out);
> void sambastring_put_wire_encode(sambastring* obj, uint16* in);
> int sambastring_cmp(sambastring* obj, sambastring* compared);
> int sambastring_cpy(sambastring* obj, sambastring* to);
> int sambastring_upper(sambastring* obj);
> int sambastring_lower(sambastring* obj);
> ...

Take a look at tng/source/lib/ustring.[ch], it's about
that... It's not yet used, and it's broken, and it's not
even tested, but I wrote it exactly for this stuff...

> > 3) localisation of messages
> for 3), we can use gettext-like library to localize output messages.
> In japanese version of samba, SWAT ouptpu is already displayed in
> japanese ( we can change language easily if message catalog is prepared!).

(Just for the long term thingie: I would prefer gettext


More information about the samba-technical mailing list