#11240: non-ASCII characters in report filename create wrong log filename on
Windows
-------------------------------------+----------------------------------
Reporter: m.feriati | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: ffmpeg
Version: unspecified | Resolution:
Keywords: FFREPORT | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+----------------------------------
Comment (by m.feriati):
Replying to [comment:3 Marton Balint]:
> Replying to [comment:2 MasterQuestionable]:
> > ͏ Likely Windows problem.
> > ͏ See also: https://trac.ffmpeg.org/ticket/11241#comment:5
> >
> > ͏ Windows is known to be buggy with Unicode support.
> > ͏ I guess this one is probably caused by the shell and OS's
handling.
> > ͏ Likely not addressable from FFmpeg.
>
> No, ffmpeg has full unicode filename support even on windows. The
problem is likely that the ffreport file is opened using fopen() instead
fopen_utf8().
thanks ''marton'',
this is furthermore confirmed by the content of the generated log file:
`Report written to "00 - hétérogénéisé.log"`
which means that the ffreport environment variable is properly read by the
ffmpeg binary.
ffmpeg just fails when it comes to create the log file with the proper
character encoding.
see
https://github.com/FFmpeg/FFmpeg/blob/db7b4fc89fb18d5ff0a1426bd433c234555a3fff/fftools/opt_common.c#L1210
`report_file = fopen(filename.str, "w");`
located in method `int init_report(const char *env, FILE **file)`
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11240#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".