AdaCore / Ada_Drivers_Library

Ada source code and complete sample GNAT projects for selected bare-board platforms supported by GNAT.
BSD 3-Clause "New" or "Revised" License
241 stars 142 forks source link

install_dependencies.py Support for utf-8 stdout returned text for Linux #416

Closed python36 closed 1 year ago

python36 commented 1 year ago

Linux uses UTF-8 encoding. Without these changes, the script raise with the next text:

Original exception was:
Traceback (most recent call last):
  File "install_dependencies.py", line 120, in <module>
    main(parser.parse_args())
  File "install_dependencies.py", line 100, in main
    ret = git_clone(repo, branch, dest, recursive)
  File "install_dependencies.py", line 42, in git_clone
    returncode, stdout, stderr = run_program(
ValueError: too many values to unpack (expected 3)
CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

Fabien-Chouteau commented 1 year ago

Thanks @python36