MetOffice / CSET

Toolkit for evaluation and investigation of numerical models for weather and climate applications.
https://metoffice.github.io/CSET/
Apache License 2.0
10 stars 4 forks source link

Replace `locale.getencoding()` with `sys.stdout.encoding` #604

Closed jfrost-mo closed 4 months ago

jfrost-mo commented 4 months ago

This is actually what we want to use to decode these streams. Also locale.getencoding() is only available in python 3.11 or newer.

Fixes #582

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

github-actions[bot] commented 4 months ago

Coverage

jfrost-mo commented 4 months ago

Merging without review as this is a targeted technical change that fixes a known bug.