Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #32739

US-ASCII is a subset of the set of Unicode code points.

Path csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!fdc3.netnews.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
Content-Type Text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
From Jeff-Relf.Me @.
Message-ID <Jeff-Relf.Me@Aug.6--8.15am.Seattle.2021> (permalink)
References <sejhjm022lo@news2.newsguy.com>
Newsgroups comp.os.linux.advocacy, alt.os.linux, comp.os.linux.misc
Subject US-ASCII is a subset of the set of Unicode code points.
User-Agent Jeff-Relf.Me/z1.HTM
Lines 22
X-Complaints-To abuse@blocknews.net
NNTP-Posting-Date Fri, 06 Aug 2021 15:15:39 UTC
Organization blocknews - www.blocknews.net
Date Fri, 06 Aug 2021 08:15:37 -0700 (Seattle)
X-Received-Bytes 1468
Xref csiph.com comp.os.linux.advocacy:591777 alt.os.linux:70440 comp.os.linux.misc:32739

Cross-posted to 3 groups.

Show key headers only | View raw


Fabian Russell:
> As far as I know, the first 32 [ code points ] (except CR and LF)
> are just dead space.  Is this correct ?

No, US-ASCII is a subset of the set of Unicode code points.

Unicode code points are 20 bits long, not 32.

typedef  wchar_t  wchar ;   typedef  char32_t  Uchar ;

//  UTF-16 requires a "Surrogate Pair" ( 2 wchars )
//  to encode one 20 bit UTF-32 (Uchar) code point.

Uchar _i32, i32 = U'⛏';   wchar  pCh[2];

#define  i32>pCh( Ch, pCh )  hall( pCh[1] = 0, Ch >= 0x10000 ? *pCh = 0xd800 | Ch - 0x10000 >> 10, pCh[1] = 0xdc00 + ( Ch & 0x03FF ) : *pCh = Ch )

i32>pCh( i32, pCh );

SurrogatePair = ( *pCh & 0xF800 ) == 0xD800 ;

_i32 = !SurrogatePair ? *pCh : 0x10000 + ( *pCh - 0xD800 << 10 ) + pCh[1] - 0xDC00 ;

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Any Unicode Experts? FR <fr@random.info> - 2021-08-06 14:39 +0000
  Re: Any Unicode Experts? FR <fr@random.info> - 2021-08-06 15:01 +0000
  US-ASCII is a subset of the set of Unicode code points. Jeff-Relf.Me  @. - 2021-08-06 08:15 -0700
    Re: US-ASCII is a subset of the set of Unicode code points. "R.Wieser" <address@not.available> - 2021-08-06 17:36 +0200
      Re: US-ASCII is a subset of the set of Unicode code points. FR <fr@random.info> - 2021-08-06 15:49 +0000
        Re: US-ASCII is a subset of the set of Unicode code points. "R.Wieser" <address@not.available> - 2021-08-06 18:48 +0200
        Re: US-ASCII is a subset of the set of Unicode code points. FR <fr@random.info> - 2021-08-06 17:57 +0000
  Re: Any Unicode Experts? Rich <rich@example.invalid> - 2021-08-06 18:10 +0000
  Re: Any Unicode Experts? Eli the Bearded <*@eli.users.panix.com> - 2021-08-06 20:27 +0000
    Re: Any Unicode Experts? The Natural Philosopher <tnp@invalid.invalid> - 2021-08-07 09:36 +0100
      Re: Any Unicode Experts? Eli the Bearded <*@eli.users.panix.com> - 2021-08-08 04:32 +0000
        Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-07 22:50 -0600
          Re: Any Unicode Experts? Rich <rich@example.invalid> - 2021-08-08 17:27 +0000
            Re: Any Unicode Experts? "Carlos E. R." <robin_listas@es.invalid> - 2021-08-08 20:21 +0200
            Re: Any Unicode Experts? Jack Strangio  <jackstrangio@yahoo.com> - 2021-08-09 13:58 +0000
          Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-08 20:32 +0200
            Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-08 18:00 -0600
              "while(1);" borks Visual Studio. Jeff-Relf.Me  @. - 2021-08-08 18:11 -0700
                Re: "while(1);" borks Visual Studio. rbowman <bowman@montana.com> - 2021-08-08 22:19 -0600
                Re: "while(1);" borks Visual Studio. Soviet_Mario <SovietMario@CCCP.MIR> - 2021-08-16 16:06 +0200
                Re: "while(1);" borks Visual Studio. jak <nospam@please.ty> - 2021-08-10 18:02 +0200
                while(malloc(666)); Jeff-Relf.Me  @. - 2021-08-10 09:28 -0700
                Re: while(malloc(666)); jak <nospam@please.ty> - 2021-08-10 18:39 +0200
              Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-09 07:28 +0200
                Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-09 07:56 -0600
                Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-10 10:33 +0200
                Re: Any Unicode Experts? The Natural Philosopher <tnp@invalid.invalid> - 2021-08-10 12:49 +0100
                Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-10 15:26 +0200
                Re: Any Unicode Experts? vallor <vallor@cultnix.org> - 2021-08-10 13:43 +0000
                Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-10 21:12 -0600
                Re: Any Unicode Experts? The Natural Philosopher <tnp@invalid.invalid> - 2021-08-11 12:25 +0100
                Re: Any Unicode Experts? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2021-08-11 16:52 +0000
                Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-11 20:19 +0200
                Re: Any Unicode Experts? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2021-08-12 16:37 +0000
                Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-12 20:32 +0200
                Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-12 20:40 -0600
                Re: Any Unicode Experts? Andreas Kohlbach <ank@spamfence.net> - 2021-08-10 16:11 -0400
                Re: Any Unicode Experts? Stéphane CARPENTIER <sc@fiat-linux.fr> - 2021-08-13 17:42 +0000

csiph-web