[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #428: Escape control characters in printed representa
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #428: Escape control characters in printed representation of symbols |
Date: |
Sat, 06 Nov 2010 23:03:53 -0000 |
#428: Escape control characters in printed representation of symbols
----------------------------+-----------------------------------------------
Reporter: alaric | Owner:
Type: defect | Status: new
Priority: minor | Milestone: 4.7.0
Component: core libraries | Version: 4.6.0
Keywords: |
----------------------------+-----------------------------------------------
{{{
#;2> (with-output-to-string (lambda () (write (string->symbol (string-
append "5" "\x00")))))
"|5\x00|"
}}}
NB: That `\x00` in the output is due to the string being escaped, not the
control character in the symbol being escaped.
This problem is particularly painful when one outputs the symbol direct to
the terminal, where the `\x00` just disappears:
{{{
#;5> (write (string->symbol "5\x00"))
|5|#;6>
}}}
...and one then spends ages tearing one's hair out as to what's wrong!
--
Ticket URL: <http://bugs.call-cc.org/ticket/428>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #428: Escape control characters in printed representation of symbols,
Chicken Trac <=