projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b659b23
)
Change implementation of #\<char> to show all "graphic" characters.
author
Chris Hanson
<org/chris-hanson/cph>
Sat, 11 Feb 2017 08:32:54 +0000
(
00:32
-0800)
committer
Chris Hanson
<org/chris-hanson/cph>
Sat, 11 Feb 2017 08:32:54 +0000
(
00:32
-0800)
This isn't quite right -- it doesn't support Unicode very well -- but will do
for now.
src/runtime/char.scm
patch
|
blob
|
history
diff --git
a/src/runtime/char.scm
b/src/runtime/char.scm
index 62902286b0a1b23cce89b0eb13a46ce5ea05a3a5..c8c137529af8b38c4faff4ceaa0bf6c425a9bde3 100644
(file)
--- a/
src/runtime/char.scm
+++ b/
src/runtime/char.scm
@@
-243,7
+243,7
@@
USA.
(cond ((code->name code))
((not (fix:< code #x80))
(string-append "x" (number->string code 16)))
- ((scalar-value-in-char-set? code char-set:
symbol-constituent
)
+ ((scalar-value-in-char-set? code char-set:
graphic
)
(string (integer->char code)))
((and (if (default-object? slashify?) #f slashify?)
(not (fix:= 0 bits)))