Speculative fix for incorrect rendering of UTF-8 in closed captions in the player.
authorCarl Hetherington <cth@carlh.net>
Thu, 4 Feb 2021 16:33:47 +0000 (17:33 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 Feb 2021 16:33:47 +0000 (17:33 +0100)
src/wx/closed_captions_dialog.cc

index 491a6fb1e4a8dfeb32e76dbcee2130635ef20105..e386beccf1938462d181c36a9074d02d5986b92a 100644 (file)
@@ -201,7 +201,7 @@ ClosedCaptionsDialog::update ()
                auto j = to_show.begin();
                int k = 0;
                while (j != to_show.end() && k < MAX_CLOSED_CAPTION_LINES) {
-                       _lines[k] = j->text();
+                       _lines[k] = std_to_wx (j->text());
                        ++j;
                        ++k;
                }