xdisp.c (init_iterator): Don't turn on bidi reordering in unibyte buffers.
See http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html
for the details.
+2010-05-10 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (init_iterator): Don't turn on bidi reordering in
+ unibyte buffers. See
+ http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
+
2010-05-10 Glenn Morris <rgm@gnu.org>
* Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
/* Are multibyte characters enabled in current_buffer? */
it->multibyte_p = !NILP (current_buffer->enable_multibyte_characters);
- /* Do we need to reorder bidirectional text? */
- it->bidi_p = !NILP (current_buffer->bidi_display_reordering);
+ /* Do we need to reorder bidirectional text? Not if this is a
+ unibyte buffer: all single-byte characters are by definition
+ strong L2R, so no reordering is needed. And bidi.c doesn't
+ support unibyte buffers anyway. */
+ it->bidi_p
+ = !NILP (current_buffer->bidi_display_reordering) && it->multibyte_p;
/* Non-zero if we should highlight the region. */
highlight_region_p