mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-22 19:13:14 +00:00
e502f1ac03
This patch changed two things. The first is that for all IETF chapter language elements that don't contain a valid ISO 639-2 code (e.g. because they contain a 639-5 code instead) a legacy chapter language element set to `und` ("undetermined") is written. Not writing a legacy element would mean that legacy parsers that don't support IETF language elements have to use the legacy element's default value `eng` ("English") in its absence, which is clearly not the language the author intended. The second change simply ensures that when multiple legacy or IETF languages are present, each value will only be written once. This also effects the situation above: when e.g. two IETF language elements without 639-2 codes exist in the same chapter display element, only one legacy element will be written, set to `und`. Fixes #3174.
7 lines
242 B
Ruby
Executable File
7 lines
242 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
# T_728chapters_keep_languages_unique
|
|
describe "mkvmerge / chapter languages: ensure each value written is unique within the scope of the same display"
|
|
|
|
test_merge "--chapters data/chapters/multi-language-same-values.xml"
|