diff options
| author | Mattias EngdegÄrd | 2024-07-18 16:16:53 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2025-07-07 11:30:07 +0200 |
| commit | f2f76756211fd5a0914734c738508f522c4b2ccd (patch) | |
| tree | 125db76722f9617cb67ad73f78ed3cdaf7680875 /src | |
| parent | 553a6c407f28c4faa832c8cda462267ef75bff38 (diff) | |
| download | emacs-f2f76756211fd5a0914734c738508f522c4b2ccd.tar.gz emacs-f2f76756211fd5a0914734c738508f522c4b2ccd.zip | |
Print non-ASCII chars in unibyte symbols as raw bytes
Previously, latin-1 was incorrectly assumed (bug#70988).
* src/print.c (print_object): Call the correct function.
* test/src/print-tests.el (print-unibyte-symbols): New test.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c index 138a21f18ab..c14e6e1419e 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -2475,7 +2475,7 @@ print_object (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag) | |||
| 2475 | { | 2475 | { |
| 2476 | /* Here, we must convert each multi-byte form to the | 2476 | /* Here, we must convert each multi-byte form to the |
| 2477 | corresponding character code before handing it to PRINTCHAR. */ | 2477 | corresponding character code before handing it to PRINTCHAR. */ |
| 2478 | int c = fetch_string_char_advance (name, &i, &i_byte); | 2478 | int c = fetch_string_char_as_multibyte_advance (name, &i, &i_byte); |
| 2479 | maybe_quit (); | 2479 | maybe_quit (); |
| 2480 | 2480 | ||
| 2481 | if (escapeflag) | 2481 | if (escapeflag) |