spack/lib/spack/llnl
Harmen Stoppels 526af1cbe7
Sprinkle open(..., encoding=utf-8) (#48006)
Add missing encoding=utf-8 to various open calls. This makes
files like spec.json, spack.yaml, spack.lock, config.yaml etc locale
independent w.r.t. text encoding. In practice this is not often an
issue since Python 3.7, where the C locale is promoted to
C.UTF-8. But it's better to enforce UTF-8 explicitly, since there is
no guarantee text files are written in the right encoding.

Also avoid opening in text mode if it can be avoided.
2024-12-12 21:46:08 +01:00
..
util Sprinkle open(..., encoding=utf-8) (#48006) 2024-12-12 21:46:08 +01:00
__init__.py Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
path.py llnl.path: make system_path_filter a noop on non-win32 (#48032) 2024-12-11 10:51:06 +01:00
string.py Bugfix/Installer: properly track task queueing (#46293) 2024-10-07 10:42:09 -07:00
url.py strip url: fix whl suffix, remove exe (#43344) 2024-03-25 13:46:09 +01:00