Ticket #2363: 0001-XXX-Windows-Recode-dump-path-to-local-code-page.patch

File 0001-XXX-Windows-Recode-dump-path-to-local-code-page.patch, 897 bytes (added by beastd, 7 years ago)
  • mplayer.c

    From 5000861f765b4434f8f5c0f89a586ee51160b701 Mon Sep 17 00:00:00 2001
    From: Alexander Strasser <eclipse7@gmx.net>
    Date: Sat, 5 Oct 2019 12:49:34 +0200
    Subject: [PATCH] XXX: Windows: Recode dump path to local code page
    
    Just for testing!
    
    This will memleak at least one path name and surely doesn't fix
    all instances of this type of issue:
    path-encoding-doesn't-match-fopen-expected-encoding
    ---
     mplayer.c | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/mplayer.c b/mplayer.c
    index c0223ab6c..625b8f917 100644
    a b int main(int argc, char *argv[])  
    29482948    if (opt_exit)
    29492949        exit_player(EXIT_NONE);
    29502950
     2951    stream_dump_name = utf8_to_local_windows_code_page(stream_dump_name);
     2952
    29512953    if (!filename && !player_idle_mode && !use_gui) {
    29522954        // no file/vcd/dvd -> show HELP:
    29532955        mp_msg(MSGT_CPLAYER, MSGL_INFO, help_text);