@@ -587,13 +587,14 @@ mbfl_filt_conv_wchar_cp50220raw(int c, mbfl_convert_filter *filter)
587
587
/*
588
588
* wchar => CP50221
589
589
*/
590
- int
591
- mbfl_filt_conv_wchar_cp50221 (int c , mbfl_convert_filter * filter )
590
+ int mbfl_filt_conv_wchar_cp50221 (int c , mbfl_convert_filter * filter )
592
591
{
593
592
int s = 0 ;
594
593
595
594
if (c >= ucs_a1_jis_table_min && c < ucs_a1_jis_table_max ) {
596
595
s = ucs_a1_jis_table [c - ucs_a1_jis_table_min ];
596
+ } else if (c == 0x203E ) { /* OVERLINE */
597
+ s = 0x1007E ; /* Convert to JISX 0201 OVERLINE */
597
598
} else if (c >= ucs_a2_jis_table_min && c < ucs_a2_jis_table_max ) {
598
599
s = ucs_a2_jis_table [c - ucs_a2_jis_table_min ];
599
600
} else if (c >= ucs_i_jis_table_min && c < ucs_i_jis_table_max ) {
@@ -609,8 +610,6 @@ mbfl_filt_conv_wchar_cp50221(int c, mbfl_convert_filter *filter)
609
610
if (s <= 0 ) {
610
611
if (c == 0xa5 ) { /* YEN SIGN */
611
612
s = 0x1005c ;
612
- } else if (c == 0x203e ) { /* OVER LINE */
613
- s = 0x1007e ;
614
613
} else if (c == 0xff3c ) { /* FULLWIDTH REVERSE SOLIDUS */
615
614
s = 0x2140 ;
616
615
} else if (c == 0x2225 ) { /* PARALLEL TO */
@@ -730,15 +729,14 @@ mbfl_filt_conv_wchar_cp50221(int c, mbfl_convert_filter *filter)
730
729
/*
731
730
* wchar => CP50222
732
731
*/
733
- int
734
- mbfl_filt_conv_wchar_cp50222 (int c , mbfl_convert_filter * filter )
732
+ int mbfl_filt_conv_wchar_cp50222 (int c , mbfl_convert_filter * filter )
735
733
{
736
- int s ;
737
-
738
- s = 0 ;
734
+ int s = 0 ;
739
735
740
736
if (c >= ucs_a1_jis_table_min && c < ucs_a1_jis_table_max ) {
741
737
s = ucs_a1_jis_table [c - ucs_a1_jis_table_min ];
738
+ } else if (c == 0x203E ) { /* OVERLINE */
739
+ s = 0x1007E ; /* Convert to JISX 0201 OVERLINE */
742
740
} else if (c >= ucs_a2_jis_table_min && c < ucs_a2_jis_table_max ) {
743
741
s = ucs_a2_jis_table [c - ucs_a2_jis_table_min ];
744
742
} else if (c >= ucs_i_jis_table_min && c < ucs_i_jis_table_max ) {
@@ -754,8 +752,6 @@ mbfl_filt_conv_wchar_cp50222(int c, mbfl_convert_filter *filter)
754
752
if (s <= 0 ) {
755
753
if (c == 0xa5 ) { /* YEN SIGN */
756
754
s = 0x1005c ;
757
- } else if (c == 0x203e ) { /* OVER LINE */
758
- s = 0x1007e ;
759
755
} else if (c == 0xff3c ) { /* FULLWIDTH REVERSE SOLIDUS */
760
756
s = 0x2140 ;
761
757
} else if (c == 0x2225 ) { /* PARALLEL TO */
0 commit comments