@@ -1565,15 +1565,14 @@ cb_tree cb_build_picture(const char *str) {
15651565 break ;
15661566 case PIC_NATIONAL :
15671567 pic -> category = CB_CATEGORY_NATIONAL ;
1568- // #ifdef I18N_UTF8
1569- // /* I18N_UTF8: NATIONAL allocates 3bytes/char for BMP. */
1570- // CHECK_CHARACTER_LENGTH(cb_max_utf8_character_data_size,
1571- // "National field cannot be larger than %d
1572- // digits");
1573- // #else /*!I18N_UTF8*/
1568+ #ifdef I18N_UTF8
1569+ /* I18N_UTF8: NATIONAL allocates 3bytes/char for BMP. */
1570+ CHECK_CHARACTER_LENGTH (cb_max_utf8_character_data_size ,
1571+ "National field cannot be larger than %d digits" );
1572+ #else /*!I18N_UTF8*/
15741573 CHECK_CHARACTER_LENGTH (cb_max_sjis_character_data_size ,
15751574 "National field cannot be larger than %d digits" );
1576- // #endif /*I18N_UTF8*/
1575+ #endif /*I18N_UTF8*/
15771576 break ;
15781577 case PIC_NUMERIC_EDITED :
15791578 pic -> str = cobc_malloc (idx + 1 );
@@ -1599,16 +1598,16 @@ cb_tree cb_build_picture(const char *str) {
15991598 memcpy (pic -> str , buff , idx );
16001599 pic -> category = CB_CATEGORY_NATIONAL_EDITED ;
16011600 pic -> lenstr = idx ;
1602- // #ifdef I18N_UTF8
1603- // / * I18N_UTF8: NATIONAL allocates 3bytes/char for BMP. */
1604- // CHECK_CHARACTER_LENGTH(
1605- // cb_max_utf8_character_data_size,
1606- // "NationalEdit field cannot be larger than %d digits");
1607- // #else /*!I18N_UTF8*/
1601+ #ifdef I18N_UTF8
1602+ /* I18N_UTF8: NATIONAL allocates 3bytes/char for BMP. */
1603+ CHECK_CHARACTER_LENGTH (
1604+ cb_max_utf8_character_data_size ,
1605+ "NationalEdit field cannot be larger than %d digits" );
1606+ #else /*!I18N_UTF8*/
16081607 CHECK_CHARACTER_LENGTH (
16091608 cb_max_sjis_character_data_size ,
16101609 "NationalEdit field cannot be larger than %d digits" );
1611- // #endif /*I18N_UTF8*/
1610+ #endif /*I18N_UTF8*/
16121611 break ;
16131612 default :
16141613 goto error ;
0 commit comments