Exemple #1
0
static void
kanji_test(void) {
    int save_cp932 = is_cp932_system;

    printf("\nTesting 2-Byte Kanji (CP 932, SJIS) codes with 'K' representing 0x81\n");

    is_cp932_system = 1;	/* pretend CP is 932 */
    do_kanji();

    is_cp932_system = 0;	/* pretend CP is not 932 */
    do_kanji();

    is_cp932_system = save_cp932;
}
Exemple #2
0
static void
kanji_test(kpathsea kpse) {
    int save_cp932 = kpse->Is_cp932_system;

    printf("\nTesting 2-Byte Kanji (CP 932, SJIS) codes with 'K' representing 0x81\n");

    kpse->Is_cp932_system = 932;	/* pretend CP is 932 */
    do_kanji(kpse);

    kpse->Is_cp932_system = 0;	/* pretend CP is not 932 */
    do_kanji(kpse);

    kpse->Is_cp932_system = save_cp932;
}