Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
0163-Fix-assertion-in-prim_tty.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0163-Fix-assertion-in-prim_tty.patch of Package erlang
From 07f80c62c12750d03b1f3bb2c651965d55e4968e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Szoboszlay?= <dszoboszlay@gmail.com> Date: Wed, 22 May 2024 22:43:38 +0200 Subject: [PATCH] Fix assertion in prim_tty The reader updates the Unicode state right before checking the input's encoding, but the assertion that encoding errors are only possible when using utf8 was done against the original state. --- lib/kernel/src/prim_tty.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kernel/src/prim_tty.erl b/lib/kernel/src/prim_tty.erl index 0fe13b84b8..5267822bd9 100644 --- a/lib/kernel/src/prim_tty.erl +++ b/lib/kernel/src/prim_tty.erl @@ -544,7 +544,7 @@ reader_loop(TTY, Parent, SignalRef, ReaderRef, FromEnc, Acc) -> {error, B, Error} -> %% We should only be able to get incorrect encoded data when %% using utf8 - FromEnc = utf8, + UpdatedFromEnc = utf8, Parent ! {self(), set_unicode_state, false}, receive {set_unicode_state, false} -> -- 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