summaryrefslogtreecommitdiff
path: root/src/fl_utf8.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_utf8.cxx')
-rw-r--r--src/fl_utf8.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx
index b7d58eecd..59a16dbf9 100644
--- a/src/fl_utf8.cxx
+++ b/src/fl_utf8.cxx
@@ -335,6 +335,15 @@ FILE *fl_fopen(const char* f, const char *mode) {
return Fl::system_driver()->fopen(f, mode);
}
+/** Same as function gzopen() of zlib, but accepts a UTF-8 encoded filename.
+ \param fname The UTF-8 encoded filename.
+ \param mode as in the standard fopen() function
+ \return A pointer of type gzFile, or NULL if the file can't be opened.
+ */
+void* fl_gzopen(const char* fname, const char *mode) {
+ return Fl::system_driver()->gzopen(fname, mode);
+}
+
/** Cross-platform function to run a system command with a UTF-8 encoded string.
This function is especially useful under the MSWindows platform where