BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
cb1bbeaf
Commit
cb1bbeaf
authored
Jan 21, 2018
by
Kiss-Vamosi Gabor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix utf-8 encoding with 4 byte long codes
parent
46a1a8df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lv_txt.c
lv_misc/lv_txt.c
+1
-1
No files found.
lv_misc/lv_txt.c
View file @
cb1bbeaf
...
...
@@ -415,7 +415,7 @@ uint32_t lv_txt_utf8_next(const char * txt, uint32_t * i)
(
*
i
)
++
;
if
((
txt
[
*
i
]
&
0xC0
)
!=
0x80
)
return
0
;
/*Invalid UTF-8 code*/
result
+=
(
uint32_t
)(
txt
[
*
i
]
&
0x3F
)
<<
6
;
result
+=
txt
[
*
i
]
&
0x3F
;
(
*
i
)
++
;
}
else
{
(
*
i
)
++
;
/*Not UTF-8 char. Go the next.*/
...
...
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