public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Jonathan Wakely <jwakely@redhat.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] doc: Document correct -fwide-exec-charset defaults [PR41041]
Date: Sat, 5 Nov 2022 12:01:03 +0100	[thread overview]
Message-ID: <CAFiYyc0XQOsNV=dvBRB--kPgfJba-7_2yrRNWGQyUmGcPH4HBw@mail.gmail.com> (raw)
In-Reply-To: <20221104121734.828189-1-jwakely@redhat.com>

On Fri, Nov 4, 2022 at 1:18 PM Jonathan Wakely via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> OK for trunk and release branches?

OK

> -- >8 --
>
> As shown in the PR, the default is not UTF-32 but rather UTF-32BE or
> UTF-32LE, avoiding the need for a byte order mark in literals.
>
> gcc/ChangeLog:
>
>         PR c/41041
>         * doc/cppopts.texi: Document -fwide-exec-charset defaults
>         correctly.
> ---
>  gcc/doc/cppopts.texi | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi
> index 75c56a368ca..c0a92b37018 100644
> --- a/gcc/doc/cppopts.texi
> +++ b/gcc/doc/cppopts.texi
> @@ -318,9 +318,10 @@ supported by the system's @code{iconv} library routine.
>  @opindex fwide-exec-charset
>  @cindex character set, wide execution
>  Set the wide execution character set, used for wide string and
> -character constants.  The default is UTF-32 or UTF-16, whichever
> -corresponds to the width of @code{wchar_t}.  As with
> -@option{-fexec-charset}, @var{charset} can be any encoding supported
> +character constants.  The default is one of UTF-32BE, UTF-32LE, UTF-16BE,
> +or UTF-16LE, whichever corresponds to the width of @code{wchar_t} and the
> +big-endian or little-endian byte order being used for code generation.  As
> +with @option{-fexec-charset}, @var{charset} can be any encoding supported
>  by the system's @code{iconv} library routine; however, you will have
>  problems with encodings that do not fit exactly in @code{wchar_t}.
>
> --
> 2.38.1
>

      reply	other threads:[~2022-11-05 11:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04 12:17 Jonathan Wakely
2022-11-05 11:01 ` Richard Biener [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFiYyc0XQOsNV=dvBRB--kPgfJba-7_2yrRNWGQyUmGcPH4HBw@mail.gmail.com' \
    --to=richard.guenther@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jwakely@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).