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.129.73.81 with SMTP id w78mr15669866ywa.15.1449271156939; Fri, 04 Dec 2015 15:19:16 -0800 (PST) X-Received: by 10.182.250.169 with SMTP id zd9mr185113obc.1.1449271156906; Fri, 04 Dec 2015 15:19:16 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!f78no6490612qge.1!news-out.google.com!l1ni88igd.0!nntp.google.com!mv3no9343670igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 4 Dec 2015 15:19:16 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2001:7e8:d6aa:be01:a199:443a:24fc:41fb; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 2001:7e8:d6aa:be01:a199:443a:24fc:41fb References: <274dc49b-b7cd-4eef-b333-34bae665c992@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <68743e4f-c584-4caa-8462-db343f91e1c4@googlegroups.com> Subject: Re: Problem with Unbounded Strings From: Laurent Injection-Date: Fri, 04 Dec 2015 23:19:16 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:28650 Date: 2015-12-04T15:19:16-08:00 List-Id: On Friday, 4 December 2015 22:59:19 UTC+1, Simon Wright wrote: > > > The Log_File I have reduced it to the minimum too: > > > > 0123456789 > > abcdefghijklmnopqrstuvwxyz > > ABCDEFGHIJKLMNOPQRSTUVWXYZ > > > > I expect my code to do this: > > > > 1st read: 0123456789 > > append to the buffer which is empty so content of buffer is: 0123456789 > > > > 2nd read: abcdefghijklmnopqrstuvwxyz > > append to buffer so it becomes: 0123456789abcdefghijklmnopqrstuvwxyz > > > > 3rd read: ABCDEFGHIJKLMNOPQRSTUVWXYZ > > append to buffer so it would be: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ > > This is exactly what I get with OS X El Capitan & FSF GCC 5.2.0. Also > GNAT GPL 2015. El Capitane and Yosemite produce the same garbage using Gnat GPL 2015. I compile with GPS and gprbuild. No idea if that is of importance. Didn't try FSF. Later when I got some sleep and when I am back from work I will try that one. And Windows.