aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorMichael R. Mauger2017-07-03 15:32:41 -0400
committerMichael R. Mauger2017-07-03 15:32:41 -0400
commit776635c01abd4aa759e7aa9584b513146978568c (patch)
tree554f444bc96cb6b05435e8bf195de4df1b00df8f /src/coding.c
parent77083e2d34ba5559ae2899d3b03cf08c2e6c5ad4 (diff)
parent4cd0db3d6e6e4d5bd49283483bdafbbfc0f583f1 (diff)
downloademacs-776635c01abd4aa759e7aa9584b513146978568c.tar.gz
emacs-776635c01abd4aa759e7aa9584b513146978568c.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index e341a71f576..5682fc015ad 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1449,7 +1449,7 @@ decode_coding_utf_8 (struct coding_system *coding)
1449} 1449}
1450 1450
1451 1451
1452static bool 1452bool
1453encode_coding_utf_8 (struct coding_system *coding) 1453encode_coding_utf_8 (struct coding_system *coding)
1454{ 1454{
1455 bool multibytep = coding->dst_multibyte; 1455 bool multibytep = coding->dst_multibyte;
@@ -3611,7 +3611,7 @@ decode_coding_iso_2022 (struct coding_system *coding)
3611 || CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS) 3611 || CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS)
3612 goto invalid_code; 3612 goto invalid_code;
3613 /* This is a graphic character, we fall down ... */ 3613 /* This is a graphic character, we fall down ... */
3614 3614 FALLTHROUGH;
3615 case ISO_graphic_plane_1: 3615 case ISO_graphic_plane_1:
3616 if (charset_id_1 < 0) 3616 if (charset_id_1 < 0)
3617 goto invalid_code; 3617 goto invalid_code;
@@ -3646,6 +3646,7 @@ decode_coding_iso_2022 (struct coding_system *coding)
3646 case ISO_single_shift_2_7: 3646 case ISO_single_shift_2_7:
3647 if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS)) 3647 if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS))
3648 goto invalid_code; 3648 goto invalid_code;
3649 FALLTHROUGH;
3649 case ISO_single_shift_2: 3650 case ISO_single_shift_2:
3650 if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SINGLE_SHIFT)) 3651 if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SINGLE_SHIFT))
3651 goto invalid_code; 3652 goto invalid_code;
@@ -3797,6 +3798,7 @@ decode_coding_iso_2022 (struct coding_system *coding)
3797 { 3798 {
3798 case ']': /* end of the current direction */ 3799 case ']': /* end of the current direction */
3799 coding->mode &= ~CODING_MODE_DIRECTION; 3800 coding->mode &= ~CODING_MODE_DIRECTION;
3801 break;
3800 3802
3801 case '0': /* end of the current direction */ 3803 case '0': /* end of the current direction */
3802 case '1': /* start of left-to-right direction */ 3804 case '1': /* start of left-to-right direction */