mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-29 12:41:03 +00:00
Better unicode handling on win32
This commit is contained in:
1 parent
a2f027e798
commit
fd8db5c53a
6 files changed
+231
-69
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user