• Patch: Elm ME+ 2.5 PLalpha62 -> Elm ME+ 2.5 PLalpha63 [2/7] (3/5)

    From Kari Hurtta@21:1/5 to All on Wed Jan 3 13:51:04 2024
    [continued from previous message]

    ! lib_error(CATGETS(elm_msg_cat, MeSet, MeBadLine,
    ! "%s: Bad line: %.30s..."),
    ! filename,buf);
    ! (*errors) ++;
    ! continue;
    }

    -
    /* Remove trailing whitespace */

    while (ptr > c2 && whitespace(*(ptr-1)))
    --- 895,927 ----
    *ptr = '\0';
    }

    ! item.value.dw.charset = safe_strdup(c2);
    ! item_ok = 1;
    break;

    case terminal_iso2022:
    ! case terminal_iso2022_mb:
    c3 = qstrpbrk(c2,"[");
    !
    ! item.value.iso2022.condition = NULL;
    if (c3 && '[' == *c3) {
    char * ptr = c3;
    !
    ! item.value.iso2022.condition = parse_condition(&c3);
    ! if (!item.value.iso2022.condition)
    goto err_4;
    !
    while (*c3 && whitespace (*c3)) /* skip leading whitespace */
    c3++;
    if (*c3) {
    err_4:
    ! lib_error(CATGETS(elm_msg_cat, MeSet, MeBadLineNo,
    ! "%s: %d: Bad line: %.30s..."),
    ! filename,lineno,buf);
    !
    ! goto error_iso2022;
    }

    /* Remove trailing whitespace */

    while (ptr > c2 && whitespace(*(ptr-1)))
    ***************
    *** 791,858 ****
    *ptr = '\0';
    }

    ! if (load_charset_map_info(&result[result_len].
    ! value.iso2022.charset,c2))
    ! result[result_len