Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
b87338ca
Commit
b87338ca
authored
5 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Define and use Unicode code points 0x2015 through 0x2021 in unicode_to_cp437()
for some obvious (but missing) mappings.
parent
fb26e960
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xpdev/unicode.c
+14
-0
14 additions, 0 deletions
src/xpdev/unicode.c
src/xpdev/unicode_defs.h
+13
-0
13 additions, 0 deletions
src/xpdev/unicode_defs.h
with
27 additions
and
0 deletions
src/xpdev/unicode.c
+
14
−
0
View file @
b87338ca
...
...
@@ -484,6 +484,20 @@ char unicode_to_cp437(enum unicode_codepoint codepoint)
case
UNICODE_SET_MINUS
:
return
'\\'
;
case
UNICODE_ASTERISK_OPERATOR
:
return
'*'
;
case
UNICODE_DOUBLE_VERTICAL_LINE
:
return
CP437_BOX_DRAWINGS_DOUBLE_VERTICAL
;
case
UNICODE_DOUBLE_LOW_LINE
:
return
'='
;
case
UNICODE_LEFT_SINGLE_QUOTATION_MARK
:
case
UNICODE_RIGHT_SINGLE_QUOTATION_MARK
:
case
UNICODE_SINGLE_HIGH_REVERSED_9_QUOTATION_MARK
:
return
'\''
;
case
UNICODE_SINGLE_LOW_9_QUOTATION_MARK
:
return
','
;
case
UNICODE_LEFT_DOUBLE_QUOTATION_MARK
:
case
UNICODE_RIGHT_DOUBLE_QUOTATION_MARK
:
case
UNICODE_DOUBLE_LOW_9_QUOTATION_MARK
:
case
UNICODE_DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK
:
return
'"'
;
case
UNICODE_DAGGER
:
return
CP437_BOX_DRAWINGS_VERTICAL_AND_HORIZONTAL
;
case
UNICODE_HORIZONTAL_BAR
:
case
UNICODE_OVERLINE
:
case
0x2500
:
// Box Drawings Light Horizontal
case
0x2501
:
// Box Drawings Heavy Horizontal
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/unicode_defs.h
+
13
−
0
View file @
b87338ca
...
...
@@ -251,6 +251,19 @@ enum unicode_codepoint {
UNICODE_ZERO_WIDTH_NON_JOINER
=
0x200C
,
UNICODE_ZERO_WIDTH_JOINER
=
0x200D
,
UNICODE_EM_DASH
=
0x2014
,
UNICODE_HORIZONTAL_BAR
=
0x2015
,
UNICODE_DOUBLE_VERTICAL_LINE
=
0x2016
,
UNICODE_DOUBLE_LOW_LINE
=
0x2017
,
UNICODE_LEFT_SINGLE_QUOTATION_MARK
=
0x2018
,
UNICODE_RIGHT_SINGLE_QUOTATION_MARK
=
0x2019
,
UNICODE_SINGLE_LOW_9_QUOTATION_MARK
=
0x201A
,
UNICODE_SINGLE_HIGH_REVERSED_9_QUOTATION_MARK
=
0x201B
,
UNICODE_LEFT_DOUBLE_QUOTATION_MARK
=
0x201C
,
UNICODE_RIGHT_DOUBLE_QUOTATION_MARK
=
0x201D
,
UNICODE_DOUBLE_LOW_9_QUOTATION_MARK
=
0x201E
,
UNICODE_DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK
=
0x201F
,
UNICODE_DAGGER
=
0x2020
,
UNICODE_DOUBLE_DAGGER
=
0x2021
,
UNICODE_BULLET
=
0x2022
,
UNICODE_HORIZONTAL_ELLIPSIS
=
0x2026
,
UNICODE_LINE_SEPARATOR
=
0x2028
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment