symbols with odd characters print better in #{}#
authorAndy Wingo <wingo@pobox.com>
Mon, 11 Apr 2011 11:38:27 +0000 (13:38 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 11 Apr 2011 11:48:11 +0000 (13:48 +0200)
commit2e9fc9fc73a8157152e6b2e122ec545d96478c2a
treed335cf24415304fc60640e14d87266fb6e8b16ec
parentd9527cfafdad1046770437a7a59d3745e7243c67
symbols with odd characters print better in #{}#

* libguile/print.c (symbol_has_extended_read_syntax): Use a more
  general, unicode-appropriate algorithm.  Hopefully doesn't cause
  any current #{}# cases to be unescaped.
  (print_extended_symbol): Use more appropriate unicode algorithm, and
  emit unicode hex escapes instead of our own lame escapes.

* test-suite/tests/symbols.test: Add tests.
libguile/print.c
test-suite/tests/symbols.test