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
a9285c51
Commit
a9285c51
authored
Oct 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make_unicode: Avoid duplicate lead bytes.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7d954f23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
c_10001.c
libs/port/c_10001.c
+0
-0
make_unicode
tools/make_unicode
+2
-4
No files found.
libs/port/c_10001.c
View file @
a9285c51
This diff is collapsed.
Click to expand it.
tools/make_unicode
View file @
a9285c51
...
...
@@ -629,6 +629,7 @@ sub READ_DEFAULTS($)
sub
add_lead_byte
($)
{
my
$ch
=
shift
;
return
if
defined
$cp2uni
[
$ch
];
push
@lead_bytes
,
$ch
;
$cp2uni
[
$ch
]
=
0
;
}
...
...
@@ -640,10 +641,7 @@ sub add_mapping($$)
my
(
$cp
,
$uni
)
=
@_
;
$cp2uni
[
$cp
]
=
$uni
unless
defined
(
$cp2uni
[
$cp
]);
$uni2cp
[
$uni
]
=
$cp
unless
defined
(
$uni2cp
[
$uni
]);
if
(
$cp
>
0xff
&&
!
defined
(
$cp2uni
[
$cp
>>
8
]))
{
add_lead_byte
(
$cp
>>
8
);
}
if
(
$cp
>
0xff
)
{
add_lead_byte
(
$cp
>>
8
);
}
}
################################################################
...
...
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