Explicitly check that terminal is in visual UTF-8 before mirroring code

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-03-16 22:05:50 +01:00
parent 6f5568ed67
commit bb7f4dbe3b

View file

@ -1136,7 +1136,9 @@ putglyph (const struct grub_unicode_glyph *c, struct grub_term_output *term)
if (i == -1)
{
code = c->base;
if (c->attributes & GRUB_UNICODE_GLYPH_ATTRIBUTE_MIRROR)
if ((term->flags & GRUB_TERM_CODE_TYPE_MASK)
== GRUB_TERM_CODE_TYPE_UTF8_VISUAL
&& (c->attributes & GRUB_UNICODE_GLYPH_ATTRIBUTE_MIRROR))
code = mirror_code (code);
}
else