ftp.nice.ch/peanuts/GeneralData/Usenet/news/1991/CSN-91.tar.gz#/comp-sys-next/1991/Jan/Wide-characters?

This is Wide-characters? in view mode; [Up]


Date: Sun 16-Jan-1991 18:59:08 From: scott@sage.uchicago.edu (Scott Deerwester) Subject: Wide characters? I'm building an application that will use Unicode characters as the native text representation standard. And in stdlib.h are the following tantalizing function declarations: extern int mblen(const char *s, size_t n); extern int mbtowc(wchar_t *pwc, const char *s, size_t n); extern int wctomb(char *s, wchar_t wchar); extern size_t mbstowcs(wchar_t *pwcs, const char *s, size_t n); extern size_t wcstombs(char *s, const wchar_t *pwcs, size_t n); And in stddef.h is the following: typedef unsigned short wchar_t; Looks a *whole* lot like the ANSI C ($31.95 for the book; ack) definition, but I can't find a reference to these functions *anywhere*! I tried things like: find /usr/include -print | xargs grep wctomb grep -l wctomb /usr/lib/lib*.a No dice. Anybody have a clue what these functions are supposed to do? I'm *hoping* that they do some sort of mapping between something vaguely Unicode-like and something vaguely ASCII-like. (Hope springs eternal...) Does anybody know?
Date: Sun 17-Jan-1991 19:35:40 From: dennisg@kgw2.bwi.WEC.COM (Dennis Glatting) Subject: Re: Wide characters? In article <SCOTT.91Jan16135908@sage.uchicago.edu>, scott@sage.uchicago.edu (Scott Deerwester) writes: |> I'm building an application that will use Unicode characters as the |> native text representation standard. And in stdlib.h are the |> following tantalizing function declarations: |> |> extern int mblen(const char *s, size_t n); |> extern int mbtowc(wchar_t *pwc, const char *s, size_t n); |> extern int wctomb(char *s, wchar_t wchar); |> extern size_t mbstowcs(wchar_t *pwcs, const char *s, size_t n); |> extern size_t wcstombs(char *s, const wchar_t *pwcs, size_t n); |> |> And in stddef.h is the following: |> |> typedef unsigned short wchar_t; |> |> Looks a *whole* lot like the ANSI C ($31.95 for the book; ack) |> definition, but I can't find a reference to these functions |> *anywhere*! I tried things like: |> |> find /usr/include -print | xargs grep wctomb |> |> and: |> |> grep -l wctomb /usr/lib/lib*.a |> |> No dice. Anybody have a clue what these functions are supposed to do? |> I'm *hoping* that they do some sort of mapping between something |> vaguely Unicode-like and something vaguely ASCII-like. (Hope springs |> eternal...) Does anybody know? see page 10-11 of the ARM

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.