From: Eli Zaretskii <eliz@gnu.org>
To: Helmut Eller <eller.helmut@gmail.com>, Kenichi Handa <handa@gnu.org>
Cc: 31376@debbugs.gnu.org, schwab@linux-m68k.org, npostavs@gmail.com
Subject: bug#31376: 26.0.50; print-charset-text-property not honored
Date: Fri, 11 May 2018 16:31:51 +0300 [thread overview]
Message-ID: <83mux6nws8.fsf@gnu.org> (raw)
In-Reply-To: <m2wowfnxt8.fsf@gmail.com> (message from Helmut Eller on Mon, 07 May 2018 20:08:19 +0200)
> From: Helmut Eller <eller.helmut@gmail.com>
> Date: Mon, 07 May 2018 20:08:19 +0200
> Cc: 31376@debbugs.gnu.org, Andreas Schwab <schwab@linux-m68k.org>
>
> On Mon, May 07 2018, Noam Postavsky wrote:
>
> > Helmut Eller <eller.helmut@gmail.com> writes:
> >
> >> On Mon, May 07 2018, Andreas Schwab wrote:
> >>
> >>>> In GNU Emacs 26.0.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
> >>>> of 2017-08-15 built on caladan
> >>>
> >>> Worksforme. Have you tried a current version?
> >>
> >> Same (wrong) result with the current version. Maybe it's an issue with
> >> environment settings?
> >
> > I can reproduce this. I see something about
> > PRINT_STRING_UNSAFE_CHARSET_FOUND in print.c, so I guess iso-8859-1 is
> > considered "unsafe"?
>
> Apparently which charsets are unsafe depends on the current locale.
>
> If I start Emacs with LANG=it_IT.UTF-8 emacs -Q, then the charset
> property is not printed. Even though that locale is not installed and
> this warning is printed at startup:
>
> (process:23336): Gtk-WARNING **: Locale not supported by C library.
> Using the fallback 'C' locale.
>
> With LANG=en_US.UTF-8 emacs -Q the problem is the same as for
> LANG=C.UTF-8.
Can someone see any difference between the value t and 'default', wrt
when/how the 'charset' property of strings is printed?
I think the behavior under the value of nil is actually intended for
'default', and the value of nil is not implemented. So I think we
should have a change in print_check_string_charset_prop that sets the
PRINT_STRING_UNSAFE_CHARSET_FOUND flag whenever it finds _any_
'charset' property on the string.
Comments?
next prev parent reply other threads:[~2018-05-11 13:31 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-07 6:48 bug#31376: 26.0.50; print-charset-text-property not honored Helmut Eller
2018-05-07 7:58 ` Andreas Schwab
2018-05-07 8:38 ` Helmut Eller
2018-05-07 12:57 ` Noam Postavsky
2018-05-07 18:08 ` Helmut Eller
2018-05-11 13:31 ` Eli Zaretskii [this message]
2018-05-11 17:44 ` Noam Postavsky
2018-05-11 18:45 ` Eli Zaretskii
2018-05-12 20:02 ` Noam Postavsky
2018-05-13 15:29 ` Eli Zaretskii
2018-05-13 18:29 ` Noam Postavsky
2018-05-13 18:51 ` Eli Zaretskii
2018-05-13 19:42 ` Noam Postavsky
2018-05-14 16:34 ` Eli Zaretskii
2018-05-14 23:15 ` Noam Postavsky
2018-05-15 17:19 ` Eli Zaretskii
2018-05-15 23:37 ` Noam Postavsky
2018-05-23 23:12 ` Noam Postavsky
[not found] ` <<837eoani9b.fsf@gnu.org>
2018-05-11 19:58 ` Drew Adams
2018-05-12 6:10 ` Eli Zaretskii
[not found] <<m2zi1c6jvo.fsf@caladan>
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=83mux6nws8.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=31376@debbugs.gnu.org \
--cc=eller.helmut@gmail.com \
--cc=handa@gnu.org \
--cc=npostavs@gmail.com \
--cc=schwab@linux-m68k.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.