From a5248906e4c608dcd76e3c0067309af7c729e5aa Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 9 Oct 2025 18:14:11 +0200 Subject: [PATCH] videoplayer: improve window title sanitisation --- videoplayer/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/videoplayer/src/main.rs b/videoplayer/src/main.rs index ca407d9..7008460 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -878,7 +878,8 @@ impl Player { let wname = if let Some(fname) = fname { // workaround for libSDL2 workaround for non-UTF8 windowing systems // see https://github.com/libsdl-org/SDL/pull/4290 for detais - let nname = fname.to_str().expect("should be able to set window title").replace('\u{2013}', "-").replace('\u{2014}', "-"); + let nname = fname.to_str().expect("should be able to set window title").replace(['\u{2013}', '\u{2014}', '\u{2022}'], "-") + .replace('\u{490}', "\u{413}").replace('\u{491}', "\u{433}"); "NihAV player - ".to_owned() + &nname } else { "NihAV player".to_owned() -- 2.39.5