diff options
Diffstat (limited to 'src/fl_utf8.cxx')
| -rw-r--r-- | src/fl_utf8.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx index fe67f3954..3b2f9a553 100644 --- a/src/fl_utf8.cxx +++ b/src/fl_utf8.cxx @@ -541,6 +541,14 @@ int fl_open(const char* f, int oflags, ...) #endif } +/** Cross-platform function to open files with a UTF-8 encoded name. + + This function is especially useful under the MSWindows platform where the + standard fopen() function fails with UTF-8 encoded non-ASCII filenames. + \param f the UTF-8 encoded filename + \param mode same as the second argument of the standard fopen() function + \return a FILE pointer upon successful completion, or NULL in case of error. + */ FILE *fl_fopen(const char* f, const char *mode) { #if defined (WIN32) && !defined(__CYGWIN__) |
