Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0242-fix-kernel-use-unicode-aware-function-chec...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0242-fix-kernel-use-unicode-aware-function-checking-forma.patch of Package erlang
From 80012c1cb5aa48182da9b034293fea14b8fa6f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Niemier?= <lukasz@niemier.pl> Date: Mon, 30 Dec 2019 00:33:56 +0100 Subject: [PATCH 2/4] fix(kernel): use unicode-aware function checking formatter config --- lib/kernel/src/logger_formatter.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/kernel/src/logger_formatter.erl b/lib/kernel/src/logger_formatter.erl index 4ab043c0fc..3df467d56c 100644 --- a/lib/kernel/src/logger_formatter.erl +++ b/lib/kernel/src/logger_formatter.erl @@ -532,8 +532,10 @@ check_template([Str|T]) when is_list(Str) -> false -> error end; check_template([Bin|T]) when is_binary(Bin) -> - Str = binary:bin_to_list(Bin), - check_template([Str|T]); + case unicode:character_to_list(Bin) of + Str -> check_template([Str|T]); + _Error -> error + end; check_template([]) -> ok; check_template(_) -> -- 2.26.2
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