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


Groups > comp.lang.c > #73829

Re: When does the type of a character constant make a difference?

From raltbos@xs4all.nl (Richard Bos)
Newsgroups comp.lang.c
Subject Re: When does the type of a character constant make a difference?
Date 2015-10-26 09:07 +0000
Organization Go wash your mouth.
Message-ID <562ded26.1058515@news.xs4all.nl> (permalink)
References <n0g6oe$so9$1@solani.org> <n0gaov$ble$1@dont-email.me> <lnoafot4kf.fsf@kst-u.example.com> <n0grtv$bp7$1@dont-email.me> <pan.2015.10.26.06.15.47.86000@nowhere.invalid>

Show all headers | View raw


Nobody <nobody@nowhere.invalid> wrote:

> On Sat, 24 Oct 2015 22:09:12 +0100, Bartc wrote:
> 
> >> What encoding are you using where the UK pound sign has code 156?  It's
> >> 163 in Unicode and Latin-1.
> > 
> > On Windows, it's 156 in console mode, and 163 in graphics mode. I can't
> > tell you what the code pages are.
> 
> It's 156 in CP-850 and 163 in Windows-1252. These correspond to the "OEM"
> and "ANSI" code pages in Windows terminology.
> 
> And it's 35 in ISO-646-UK (aka UK-ASCII), resulting in untold acres of 
> program listings starting with "£include <stdio.h>".

It is, after all, called the Pound sign.

I know an ASCII-based charset where it's 96...

Richard

Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

When does the type of a character constant make a difference? Philipp Klaus Krause <pkk@spth.de> - 2015-10-24 17:05 +0200
  Re: When does the type of a character constant make a difference? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-10-24 16:55 +0100
  Re: When does the type of a character constant make a difference? raltbos@xs4all.nl (Richard Bos) - 2015-10-24 15:59 +0000
  Re: When does the type of a character constant make a difference? Bartc <bc@freeuk.com> - 2015-10-24 17:16 +0100
    Re: When does the type of a character constant make a difference? Richard Damon <Richard@Damon-Family.org> - 2015-10-24 12:41 -0400
    Re: When does the type of a character constant make a difference? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-10-24 17:50 +0100
    Re: When does the type of a character constant make a difference? Keith Thompson <kst-u@mib.org> - 2015-10-24 13:05 -0700
      Re: When does the type of a character constant make a difference? Bartc <bc@freeuk.com> - 2015-10-24 22:09 +0100
        Re: When does the type of a character constant make a difference? Nobody <nobody@nowhere.invalid> - 2015-10-26 06:15 +0000
          Re: When does the type of a character constant make a difference? raltbos@xs4all.nl (Richard Bos) - 2015-10-26 09:07 +0000

csiph-web