Your message dated Sun, 23 Jul 2017 17:00:08 +0100 with message-id <[email protected]> and subject line Re: Bug#535078: python2.5: print simple string, but messy output has caused the Debian Bug report #535078, regarding python2.5: print simple string, but messy output to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 535078: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535078 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: python2.5 Version: 2.5.2-15 Severity: normal run the simple script as following: $cat test.py #!/usr/bin/python str = '\x19\x0c\x1a\x16\x00\x0e' print "%s" % str $./test.py ---messy output--- What's wrong? I'm not sure whether its python's bug or else. My terminal is gnome-terminal. Also debian(etch) has the same problem. -- System Information: Debian Release: 5.0.1 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python2.5 depends on: ii libbz2-1.0 1.0.5-1 high-quality block-sorting file co ii libc6 2.7-18 GNU C Library: Shared libraries ii libdb4.5 4.5.20-13 Berkeley v4.5 Database Libraries [ ii libncursesw5 5.7+20081213-1 shared libraries for terminal hand ii libreadline5 5.2-3.1 GNU readline and history libraries ii libsqlite3-0 3.5.9-6 SQLite 3 shared library ii libssl0.9.8 0.9.8g-15+lenny1 SSL shared libraries ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap ii python2.5-minimal 2.5.2-15 A minimal subset of the Python lan python2.5 recommends no packages. Versions of packages python2.5 suggests: pn python-profiler <none> (no description available) pn python2.5-doc <none> (no description available) -- no debconf information
--- End Message ---
--- Begin Message ---On Mon, 29 Jun 2009 at 22:12:39 +0800, zeal wrote: > str = '\x19\x0c\x1a\x16\x00\x0e' > print "%s" % str > $./test.py > ---messy output--- This string consists entirely of ASCII control characters: it has no useful text content. Nothing useful can result from printing arbitrary control characters to a terminal. Some control characters are defined to have various effects on a terminal like gnome-terminal; for example U+000C FORM FEED behaves like a newline. For the rest, the only reasonable thing gnome-terminal can do is to display whatever placeholder is provided by your configured font, which is typically a rectangle with the codepoint represented in hex, something like this: |-----| | 0 0 | | 0 E | |-----| ... and in fact that is exactly what gnome-terminal does. This is behaving as designed, so I'm closing the bug. S
--- End Message ---

