From 5e6bf76b0a75f84dcdaa277d1aef7ab76e2d0631 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 4 Oct 2017 11:46:33 +0000 Subject: 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 --- src/fl_utf8.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/fl_utf8.cxx') 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 -- cgit v1.2.3