summaryrefslogtreecommitdiffstats
path: root/lang/erlang14/files
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2007-02-23 20:14:54 +0000
committerolgeni <olgeni@FreeBSD.org>2007-02-23 20:14:54 +0000
commit7958c306c9134211323ba2e641cf56956a9663b7 (patch)
tree48c285d983c5c9463e75b7f210332e4c9d5f9825 /lang/erlang14/files
parent19cba8b82a37229326d31077a1601ff4656325ee (diff)
downloadFreeBSD-ports-7958c306c9134211323ba2e641cf56956a9663b7.zip
FreeBSD-ports-7958c306c9134211323ba2e641cf56956a9663b7.tar.gz
Fix formatting exception in io:format.
Obtained from: Hans Bolinder <hans.bolinder(at)ericsson.com>
Diffstat (limited to 'lang/erlang14/files')
-rw-r--r--lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl b/lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl
new file mode 100644
index 0000000..0f3305e
--- /dev/null
+++ b/lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl
@@ -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,
OpenPOWER on IntegriCloud