Subject: 26.0.50; print-charset-text-property not honored

From: Helmut Eller <[email-masked]>
Date: Mon, 07 May 2018 08:48:59 +0200

This example 

(let ((print-charset-text-property nil)
      (print-escape-multibyte t))
   (prin1 #("\x00f6\ " 0 1 (charset iso-8859-1))
           (current-buffer)))

when executed in the *scratch* buffer inserts
#("\x00f6\ " 0 1 (charset iso-8859-1))

I would expect "\x00f6\ " without the #(...) as
print-charset-text-property is bound to nil.

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
Repository revision: 66b75d3f2002459edccd241af57c63b380b192d3
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description:	Debian GNU/Linux 9.0 (stretch)

Configured using:
 'configure --with-xpm=no --with-gif=no --with-tiff=no --with-jpeg=no
 --without-pop'

Configured features:
PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 LIBSYSTEMD

Important settings:
  value of $LANG: C.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  diff-auto-refine-mode: t
  whitespace-mode: t
  outline-minor-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t