Fix formatting exception in io:format.
Obtained from: Hans Bolinder <hans.bolinder(at)ericsson.com>
This commit is contained in:
parent
b184568387
commit
54a7124a42
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185755
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= erlang
|
||||
PORTVERSION= r11b3
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= lang parallel
|
||||
MASTER_SITES= http://www.erlang.org/download/ \
|
||||
|
16
lang/erlang/files/patch-lib_stdlib_src_io__lib__pretty.erl
Normal file
16
lang/erlang/files/patch-lib_stdlib_src_io__lib__pretty.erl
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- lib/stdlib/src/io_lib_pretty.erl.orig
|
||||
+++ lib/stdlib/src/io_lib_pretty.erl
|
||||
@@ -159,7 +159,9 @@
|
||||
%% Reuse the list created by io_lib:write_binary()...
|
||||
pp_binary([LT,LT,S,GT,GT], Col, Ll, Ind, LD) ->
|
||||
N = max(8, Ll - Col - LD),
|
||||
- [LT,LT,pp_binary(S, N, N, Ind),GT,GT].
|
||||
+ [LT,LT,pp_binary(S, N, N, Ind),GT,GT];
|
||||
+pp_binary(S, _Col, _Ll, _Ind, _LD) ->
|
||||
+ S.
|
||||
|
||||
pp_binary([BS, $, | S], N, N0, Ind) ->
|
||||
Len = length(BS) + 1,
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= erlang
|
||||
PORTVERSION= r11b3
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= lang parallel
|
||||
MASTER_SITES= http://www.erlang.org/download/ \
|
||||
|
16
lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl
Normal file
16
lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- lib/stdlib/src/io_lib_pretty.erl.orig
|
||||
+++ lib/stdlib/src/io_lib_pretty.erl
|
||||
@@ -159,7 +159,9 @@
|
||||
%% Reuse the list created by io_lib:write_binary()...
|
||||
pp_binary([LT,LT,S,GT,GT], Col, Ll, Ind, LD) ->
|
||||
N = max(8, Ll - Col - LD),
|
||||
- [LT,LT,pp_binary(S, N, N, Ind),GT,GT].
|
||||
+ [LT,LT,pp_binary(S, N, N, Ind),GT,GT];
|
||||
+pp_binary(S, _Col, _Ll, _Ind, _LD) ->
|
||||
+ S.
|
||||
|
||||
pp_binary([BS, $, | S], N, N0, Ind) ->
|
||||
Len = length(BS) + 1,
|
Loading…
Reference in New Issue
Block a user