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[])
|
| 2948 | 2948 | if (opt_exit) |
| 2949 | 2949 | exit_player(EXIT_NONE); |
| 2950 | 2950 | |
| | 2951 | stream_dump_name = utf8_to_local_windows_code_page(stream_dump_name); |
| | 2952 | |
| 2951 | 2953 | if (!filename && !player_idle_mode && !use_gui) { |
| 2952 | 2954 | // no file/vcd/dvd -> show HELP: |
| 2953 | 2955 | mp_msg(MSGT_CPLAYER, MSGL_INFO, help_text); |