mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-25 14:01:07 -08:00
Graphic characters are their own names.
This commit is contained in:
parent
63f1b0313e
commit
0293501b95
1 changed files with 3 additions and 1 deletions
|
|
@ -454,7 +454,9 @@ cl_char_name(cl_object c)
|
|||
{
|
||||
cl_index code = ecl_char_code(c);
|
||||
cl_object output;
|
||||
if (code > 127) {
|
||||
if (ecl_graphic_char_p(code)) {
|
||||
output = cl_string(c);
|
||||
} else if (code > 127) {
|
||||
char name[20]; /* cleanup */
|
||||
sprintf(name, "U%04x", code);
|
||||
output = make_base_string_copy(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue