Better unicode handling on win32

This commit is contained in:
cpq committed 2021-02-07 22:43:49 +00:00
1 parent a2f027e798
commit fd8db5c53a
6 files changed
+231 -69

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
#include "log.h"
#include "ssi.h"
#include "log.h"
#include "util.h"
#ifndef MG_MAX_SSI_DEPTH
#define MG_MAX_SSI_DEPTH 5
@@ -8,7 +9,7 @@
#if MG_ENABLE_SSI
static char *mg_ssi(const char *path, const char *root, int depth) {
struct mg_iobuf b = {NULL, 0, 0};
FILE *fp = fopen(path, "rb");
FILE *fp = mg_fopen(path, "rb");
if (fp != NULL) {
char buf[BUFSIZ], arg[sizeof(buf)];
int ch, intag = 0;