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

Henrik Nord <>
Thu Nov 22 09:55:01 CET 2012


Hi

Sorry for the delay, I have now added your patch to master-pu, and 
rebased it on master.

Thank you for your contribution!



On 2012-11-08 11:11, Aleksandr Vinokurov wrote:
> 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  <http://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-win
> https://github.com/aleksandr-vin/otp/compare/maint-fix-os-cmd-win.patch
> -- 
> Aleksandr Vinokurov
> +7 (921) 982-21-43
> @aleksandrvin
>
>
>
> _______________________________________________
> erlang-patches mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-patches

-- 
/Henrik Nord Erlang/OTP

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20121122/1de7eaf6/attachment.html>


More information about the erlang-patches mailing list