* include/grub/unicode.h (grub_unicode_compact_range): Replace end with
len and make it smaller. All users updated. * util/import_unicode.py: Put length and not end character. Check length.
This commit is contained in:
parent
8569f13d8d
commit
5da8dbc5bc
4 changed files with 34 additions and 23 deletions
|
@ -130,9 +130,13 @@ for line in infile:
|
|||
if begincode != -2 and (lastbiditype != "L" or lastcombtype != 0 or \
|
||||
lastmirrortype):
|
||||
outfile.write (("{0x%x, 0x%x, GRUB_BIDI_TYPE_%s, %d, %d, GRUB_JOIN_TYPE_%s},\n" \
|
||||
% (begincode, lastcode, lastbiditype, \
|
||||
% (begincode, lastcode - begincode + 1, \
|
||||
lastbiditype, \
|
||||
lastcombtype, lastmirrortype, \
|
||||
lastjoin)))
|
||||
if lastcode - begincode + 1 >= 0x200:
|
||||
print "Too long range"
|
||||
raise
|
||||
begincode = curcode
|
||||
lastcode = curcode
|
||||
lastjoin = curjoin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue