public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/111578] New: GNAT ada.textio.setline gives incorrect result
@ 2023-09-25  2:05 thiebauddick2 at aol dot com
  2023-09-25  7:00 ` [Bug ada/111578] " ebotcazou at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: thiebauddick2 at aol dot com @ 2023-09-25  2:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111578

            Bug ID: 111578
           Summary: GNAT ada.textio.setline gives incorrect result
           Product: gcc
           Version: 11.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thiebauddick2 at aol dot com
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

building the following program with gnatmake:

with ada.text_io; use ada.text_io;

procedure Cursor is
begin
   Put(ASCII.ESC & "[2J" & ASCII.ESC & "[;H");
   set_col(1);
   set_line(6);
   put ("aaaaaaaa");
   set_col(1);
   set_line(7);
   put ("bbbbbbbb");
   set_col(3);
   set_line(5);
   put ("cccccccc");
end Cursor;      

Gives the result:



aaaaaaaa
bbbbbbbb






cccccccc



It should give the result




  cccccccc
aaaaaaaa
bbbbbbbbb



GNAT 10.5.0 on Linux Mint 21.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug ada/111578] GNAT ada.textio.setline gives incorrect result
  2023-09-25  2:05 [Bug ada/111578] New: GNAT ada.textio.setline gives incorrect result thiebauddick2 at aol dot com
@ 2023-09-25  7:00 ` ebotcazou at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2023-09-25  7:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111578

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |ebotcazou at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
No, see the A.10.5 clause of the Ada Reference Manual.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-25  7:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25  2:05 [Bug ada/111578] New: GNAT ada.textio.setline gives incorrect result thiebauddick2 at aol dot com
2023-09-25  7:00 ` [Bug ada/111578] " ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).