Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
b373c8ec
Commit
b373c8ec
authored
Sep 21, 2014
by
Erik de Castro Lopo
Browse files
Minor clean up of win_utf8_io.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent
d6d33e21
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/share/win_utf8_io.h
View file @
b373c8ec
...
...
@@ -58,7 +58,7 @@ int unlink_utf8(const char *filename);
int
rename_utf8
(
const
char
*
oldname
,
const
char
*
newname
);
size_t
strlen_utf8
(
const
char
*
str
);
int
win_get_console_width
(
void
);
int
print_console
(
FILE
*
stream
,
const
wchar_t
*
text
,
uint32
_t
len
);
int
print_console
(
FILE
*
stream
,
const
wchar_t
*
text
,
size
_t
len
);
HANDLE
WINAPI
CreateFile_utf8
(
const
char
*
lpFileName
,
DWORD
dwDesiredAccess
,
DWORD
dwShareMode
,
LPSECURITY_ATTRIBUTES
lpSecurityAttributes
,
DWORD
dwCreationDisposition
,
DWORD
dwFlagsAndAttributes
,
HANDLE
hTemplateFile
);
#ifdef __cplusplus
...
...
src/share/win_utf8_io/win_utf8_io.c
View file @
b373c8ec
...
...
@@ -40,9 +40,9 @@
#include
<stdlib.h>
#include
<string.h>
#include
<stdarg.h>
#define WIN32_LEAN_AND_MEAN
#include
<windows.h>
/* for WideCharToMultiByte and MultiByteToWideChar */
#include
"share/compat.h"
#include
"share/win_utf8_io.h"
static
UINT
win_utf8_io_codepage
=
CP_ACP
;
...
...
@@ -148,7 +148,7 @@ int win_get_console_width(void)
/* print functions */
int
print_console
(
FILE
*
stream
,
const
wchar_t
*
text
,
uint32
_t
len
)
int
print_console
(
FILE
*
stream
,
const
wchar_t
*
text
,
size
_t
len
)
{
static
HANDLE
hOut
;
static
HANDLE
hErr
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment