Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
ca208843
Commit
ca208843
authored
Apr 20, 2020
by
deuce
Browse files
Fix UTF-8 to Codepage string conversion to use the codepage-specific
codepoint to codepage translation.
parent
e62e4486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/conio/utf8_codepages.c
src/conio/utf8_codepages.c
+1
-1
No files found.
src/conio/utf8_codepages.c
View file @
ca208843
...
...
@@ -1865,7 +1865,7 @@ utf8_to_cpstr(const uint8_t *utf8str, char unmapped, size_t inlen, size_t *outle
idx
+=
read_cp
(
&
utf8str
[
idx
],
&
codepoint
);
if
(
codepoint
==
0xffff
||
codepoint
==
0xfffe
)
goto
error
;
*
(
rp
++
)
=
cp
table_
from_unicode_cpoint
(
codepoint
,
unmapped
,
cpdef
);
*
(
rp
++
)
=
cp
def
->
from_unicode_cpoint
(
codepoint
,
unmapped
,
cpdef
);
}
*
rp
=
0
;
if
(
outlen
)
...
...
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