delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/26/04:56:53

From: "Robert L." <vlad3 AT sympatico DOT ca>
Newsgroups: comp.os.msdos.djgpp
References: <lD9C4.1556$1C2 DOT 146525 AT news20 DOT bellglobal DOT com> <cT4D4.8747$n03 DOT 411986 AT news20 DOT bellglobal DOT com> <k18tdscj2d0kaffgo1ao6vk9el9blb1cft AT 4ax DOT com>
Subject: Re: foreign char ( almost corect )
Lines: 33
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Message-ID: <YhgD4.17850$1C2.491760@news20.bellglobal.com>
Date: Sun, 26 Mar 2000 04:24:24 GMT
NNTP-Posting-Host: 216.209.203.70
X-Trace: news20.bellglobal.com 954044664 216.209.203.70 (Sat, 25 Mar 2000 23:24:24 EST)
NNTP-Posting-Date: Sat, 25 Mar 2000 23:24:24 EST
Organization: Sympatico
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

i change a line in config.sys and autoexec.bat
i put the good keyboard map, and the good country.

BTW, i test it with msvc, and it's error. The previous test i make was with
"\x90t", this is why it was good.

Thanks.

Jason Green a écrit dans le message ...
>"Robert L." <vlad3 AT sympatico DOT ca> wrote:
>
>> Now
>> cout<<"\x90";
>> work well.
>
>It would be useful to know what you did to fix this.
>
>> But
>> cout<<"\x90crivez"; // écrivez == write
>> doesn't work, it say the same error ( escape secquence out of range )
>
>This is expected behaviour for standard C/C++.  If MSVC compiles this
>without error then MSVC has a bug, not DJGPP.
>
>All hex digits after the \x are read as being a single character. So
>the first character of the string is interpreted as 90C hex, which of
>course is out of range.
>
>You should use 3-digit octal:
>
>cout << "\220crivez";


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019