This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] fix PR ada/80888
- From: Simon Wright <simon at pushface dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Jun 2017 17:58:55 +0100
- Subject: Re: [PATCH] fix PR ada/80888
- Authentication-results: sourceware.org; auth=none
- References: <AEE97DB2-397E-44DA-8C85-3BA867F824A1@pushface.org>
If OK, can it be applied please?
(patch applies cleanly to current sources)
> On 27 May 2017, at 16:58, Simon Wright <email@example.com> wrote:
> The GNAT reference manual says in 11.6 Wide_Text_IO
> "The default encoding method for the standard files, and for opened
> files for which no WCEM parameter is given in the FORM string matches
> the wide character encoding specified for the main program (the
> default being brackets encoding if no coding method was specified with
> This is not true; the default is brackets encoding regardless of the
> coding method specified with -gnatW.
> The attached patch (to 7.1.0) corrects this. Tested on
> x86_84-apple-darwin15 by rebuilding the library (cd gcc; make gnatlib
> gnatlib-shared) and make -j4 check-ada,
> === acats Summary ===
> # of expected passes 2320
> # of unexpected failures 0
> /Volumes/Miscellaneous/tmp/gcc-7.1.0/gcc/testsuite/ada/acats/run_all.sh completed at Fri 26 May 2017 15:44:52 BST
> === gnat Summary ===
> # of expected passes 2569
> # of expected failures 24
> # of unsupported tests 7
> /Volumes/Miscellaneous/tmp/gcc-7.1.0-build/gcc/gnatmake version 7.1.0
> 2017-05-27 Simon Wright <firstname.lastname@example.org>
> PR ada/80888
> * a-textio.adb (Set_WCEM): default the file's wide character encoding
> method to Default_WCEM, not WCEM_Brackets.
> * a-witeio.adb: likewise.
> * a-ztexio.adb: likewise.