Commit 9f73b317 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Dummy decoder: ASCII path, use utf8_open() for close-on-exec

parent e7aa9383
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_codec.h> #include <vlc_codec.h>
#include <vlc_charset.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> /* write(), close() */ # include <unistd.h> /* write(), close() */
...@@ -92,7 +93,7 @@ static int OpenDecoderCommon( vlc_object_t *p_this, bool b_force_dump ) ...@@ -92,7 +93,7 @@ static int OpenDecoderCommon( vlc_object_t *p_this, bool b_force_dump )
} }
if( b_force_dump ) if( b_force_dump )
{ {
p_sys->i_fd = open( psz_file, O_WRONLY | O_CREAT | O_TRUNC, 00644 ); p_sys->i_fd = utf8_open( psz_file, O_WRONLY | O_CREAT | O_TRUNC, 00644 );
if( p_sys->i_fd == -1 ) if( p_sys->i_fd == -1 )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment