From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.70.37.200 with SMTP id a8mr26953035pdk.1.1413988592479; Wed, 22 Oct 2014 07:36:32 -0700 (PDT) X-Received: by 10.140.22.239 with SMTP id 102mr644771qgn.1.1413988592430; Wed, 22 Oct 2014 07:36:32 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.glorb.com!uq10no15613781igb.0!news-out.google.com!u5ni10qab.1!nntp.google.com!cm18no326569qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 22 Oct 2014 07:36:32 -0700 (PDT) In-Reply-To: <87d29kfwip.fsf@ludovic-brenta.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.254.158.52; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 80.254.158.52 References: <7c1b89e6-9ab8-4faa-b60c-c5c4683f0bff@googlegroups.com> <87d29kfwip.fsf@ludovic-brenta.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Assembling Complex Strings Containing Carriage Returns Prior to Using Ada.Text_IO.Put? From: Maciej Sobczak Injection-Date: Wed, 22 Oct 2014 14:36:32 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:22660 Date: 2014-10-22T07:36:32-07:00 List-Id: > '\n' is not ASCII.CR, it is ASCII.LF, by the way. And on some > nonstandard platforms, the C compiler translates '\n' into a sequence of > two characters, ASCII.CR & ASCII.LF. What are those nonstandard platforms where the C compiler translates a single character '\n' into a sequence of two characters? In particular, what happens in the following statement: const char c = '\n'; ? -- Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com