Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0512-erts-Fix-printing-of-non-printable-charact...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0512-erts-Fix-printing-of-non-printable-characters.patch of Package erlang
From 1da39b4ec40aa43222d2b57bf2f3b7edd3a172ce Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Fri, 28 Jan 2022 17:38:59 +0100 Subject: [PATCH 12/34] erts: Fix printing of non-printable characters --- erts/emulator/drivers/unix/ttsl_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erts/emulator/drivers/unix/ttsl_drv.c b/erts/emulator/drivers/unix/ttsl_drv.c index 08ab714153..3fb5bdb8fb 100644 --- a/erts/emulator/drivers/unix/ttsl_drv.c +++ b/erts/emulator/drivers/unix/ttsl_drv.c @@ -1166,8 +1166,9 @@ static int write_buf(Uint32 *s, int n, int next_char_is_crnl) --n; ++s; } else if (*s & CONTROL_TAG) { + byte c = (byte)*s; outc('^'); - outc(lastput = ((byte) ((*s == 0177) ? '?' : *s | 0x40))); + outc(lastput = ((byte) ((c == 0177 ? '?' : c | 0x40)))); n -= 2; s += 2; } else if (*s & ESCAPED_TAG) { -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor