Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
2ae2b12c
Commit
2ae2b12c
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
e3c569a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Common/OS.cpp
+1
-2
1 addition, 2 deletions
Common/OS.cpp
with
1 addition
and
2 deletions
Common/OS.cpp
+
1
−
2
View file @
2ae2b12c
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment