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
emacs
emacs
Commits
a5236564
Commit
a5236564
authored
May 26, 2000
by
Kenichi Handa
Browse files
(init_charset_once): Set the table bytes_by_char_head
correctly.
parent
8ccce2b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/charset.c
src/charset.c
+4
-5
No files found.
src/charset.c
View file @
a5236564
...
...
@@ -1570,17 +1570,16 @@ init_charset_once ()
for
(
i
=
0
;
i
<
256
;
i
++
)
bytes_by_char_head
[
i
]
=
1
;
for
(
i
=
MIN_CHARSET_OFFICIAL_DIMENSION1
;
i
<=
MAX_CHARSET_OFFICIAL_DIMENSION1
;
i
++
)
for
(
i
=
128
;
i
<
MIN_CHARSET_OFFICIAL_DIMENSION2
;
i
++
)
bytes_by_char_head
[
i
]
=
2
;
for
(
i
=
MIN_CHARSET_OFFICIAL_DIMENSION2
;
i
<=
MAX_CHARSET_OFFICIAL_DIMENSION2
;
i
++
)
for
(;
i
<=
MAX_CHARSET_OFFICIAL_DIMENSION2
;
i
++
)
bytes_by_char_head
[
i
]
=
3
;
for
(;
i
<
160
;
i
++
)
bytes_by_char_head
[
i
]
=
2
;
bytes_by_char_head
[
LEADING_CODE_PRIVATE_11
]
=
3
;
bytes_by_char_head
[
LEADING_CODE_PRIVATE_12
]
=
3
;
bytes_by_char_head
[
LEADING_CODE_PRIVATE_21
]
=
4
;
bytes_by_char_head
[
LEADING_CODE_PRIVATE_22
]
=
4
;
bytes_by_char_head
[
LEADING_CODE_8_BIT_CONTROL
]
=
2
;
for
(
i
=
0
;
i
<
128
;
i
++
)
width_by_char_head
[
i
]
=
1
;
...
...
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