exaloop / exaloop/codon

Printing a formatted float fails when en_US.UTF-8 is not available

Open
#701 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16.8k
Forks
603
Avg merge
4d 23h
Merged PRs (30d)
6

Description

```py
print(f"{3.14159265:.2f}")
```

This causes a runtime error when en_US.UTF-8 is not available.

```
ValueError: invalid format specifier: locale::facet::_S_create_c_locale name not valid

Raised from: mstd.internal.format._format_error.0:0
/usr/local/lib/codon/stdlib/internal/format.codon:4:2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.