Skip to content
Snippets Groups Projects
Commit 2ae2b12c authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix

parent e3c569a0
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,7 @@ static unsigned int utf8FromUtf16(char* dst, unsigned int dstlen, ...@@ -208,7 +208,7 @@ static unsigned int utf8FromUtf16(char* dst, unsigned int dstlen,
static wchar_t *wbuf[3] = {NULL, NULL, NULL}; static wchar_t *wbuf[3] = {NULL, NULL, NULL};
static unsigned int setwbuf(int i, const char *f) static void setwbuf(int i, const char *f)
{ {
// all strings in Gmsh are supposed to be UTF8-encoded, which is natively // all strings in Gmsh are supposed to be UTF8-encoded, which is natively
// supported by Mac and Linux. Windows does not support UTF-8, but UTF-16 // supported by Mac and Linux. Windows does not support UTF-8, but UTF-16
...@@ -219,7 +219,6 @@ static unsigned int setwbuf(int i, const char *f) ...@@ -219,7 +219,6 @@ static unsigned int setwbuf(int i, const char *f)
wbuf[i] = (wchar_t*)realloc(wbuf[i], sizeof(wchar_t)*wn); wbuf[i] = (wchar_t*)realloc(wbuf[i], sizeof(wchar_t)*wn);
wn = utf8toUtf16(f, (unsigned) l, (unsigned short *)wbuf[i], wn); wn = utf8toUtf16(f, (unsigned) l, (unsigned short *)wbuf[i], wn);
wbuf[i][wn] = 0; wbuf[i][wn] = 0;
return wn;
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment