RIFF/WAV: Default to latin1, change charset when CSET chunk is present (#1451)

- WAV files being read evaluate the charset properly (overridable
  via option by caller)
- WAV files being saved always use UTF-8 (they add a CSET chunk)

following the specification at
https://www.robotplanet.dk/audio/wav_meta_data/riff_mci.pdf#page=25

The code page charset can also be used for ID3v1 tags, both for
parsing and rendering.

For users in space restricted environments, there
is a build flag WITH_CHARSETTABLES to exclude the character tables.

---------

Co-authored-by: Urs Fleisch <[email protected]>
This commit is contained in:
MinnieTheMoocher
2026-10-28 17:49:28 +01:00
committed by GitHub
co-authored by Urs Fleisch
parent bdfeb82cbe
commit ff3b53670a
16 changed files with 3731 additions and 38 deletions
+1
View File
@@ -44,6 +44,7 @@ CMakeLists.txt file.
| `BUILD_FRAMEWORK` | Build a macOS framework |
| `TESTS_DIR` | Where to find unit test data (with data appended) |
| `TESTS_TMPDIR` | Where to create temporary files in unit tests |
| `WITH_CHARSETTABLES` | Include code page character tables (default ON) |
If you want to install TagLib 2 alongside TagLib 1, you can use