[erlang-patches] Deep list argument error under Windows in os:cmd/1

Aleksandr Vinokurov aleksandr.vin@REDACTED
Thu Nov 8 11:11:14 CET 2012


Because of leeway in implementing os:cmd/1 under different OS there is
a difference in results when calling it with deep list
argument. os:cmd/1 specifies io_lib:chars() type for its argument and
io_lib functions can produce deep lists inspite of io_lib:chars()
result type specification. This commit flattens the argument for
erlang:open_port/2 (which is used under Windows) and expands the
os_SUITE to regress the bug.

git fetch git://github.com/aleksandr-vin/otp.git maint-fix-os-cmd-win

or viewed here:

https://github.com/aleksandr-vin/otp/compare/maint-fix-os-cmd-winhttps://github.com/aleksandr-vin/otp/compare/maint-fix-os-cmd-win.patch

-- 
Aleksandr Vinokurov
+7 (921) 982-21-43
@aleksandrvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20121108/dc845129/attachment.htm>


More information about the erlang-patches mailing list