Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bdc52c47
Commit
bdc52c47
authored
Jan 10, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Use CP_UNIXCP to translate strings to the system encoding.
parent
9e357cd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
curses.c
programs/wineconsole/curses.c
+3
-3
No files found.
programs/wineconsole/curses.c
View file @
bdc52c47
...
...
@@ -335,8 +335,8 @@ static void WCCURSES_SetTitle(const struct inner_data* data)
if
(
WINECON_GetConsoleTitle
(
data
->
hConIn
,
wbuf
,
sizeof
(
wbuf
)
/
sizeof
(
WCHAR
)))
{
char
buffer
[
256
];
WideCharToMultiByte
(
CP_
ACP
,
0
,
wbuf
,
-
1
,
buffer
,
sizeof
(
buffer
),
WideCharToMultiByte
(
CP_
UNIXCP
,
0
,
wbuf
,
-
1
,
buffer
,
sizeof
(
buffer
),
NULL
,
NULL
);
fputs
(
"
\033
]2;"
,
stdout
);
fputs
(
buffer
,
stdout
);
...
...
@@ -363,7 +363,7 @@ static void WCCURSES_Refresh(const struct inner_data* data, int tp, int bm)
cell
=
&
data
->
cells
[
y
*
data
->
curcfg
.
sb_width
];
for
(
x
=
0
;
x
<
data
->
curcfg
.
sb_width
;
x
++
)
{
WideCharToMultiByte
(
CP_
ACP
,
0
,
&
cell
[
x
].
Char
.
UnicodeChar
,
1
,
WideCharToMultiByte
(
CP_
UNIXCP
,
0
,
&
cell
[
x
].
Char
.
UnicodeChar
,
1
,
&
ch
,
1
,
NULL
,
NULL
);
attr
=
((
BYTE
)
ch
<
32
||
(
BYTE
)
ch
>
127
)
?
32
:
(
BYTE
)
ch
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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