summaryrefslogtreecommitdiff
path: root/src/fl_utf8.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-10-04 11:46:33 +0000
committerManolo Gouy <Manolo>2017-10-04 11:46:33 +0000
commit5e6bf76b0a75f84dcdaa277d1aef7ab76e2d0631 (patch)
treea6b337e3d88fc23fe1941e09d22a0b28f5e31223 /src/fl_utf8.cxx
parent6434d5d602344631cef2a75c015fa9e72035852d (diff)
Fl_SVG_Image class: add support for compressed .svgz image files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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