Ignore:
Timestamp:
Sep 6, 2016, 5:38:38 PM (8 years ago)
Author:
Bruno Cornec
Message:

Fix #806 by setuping env var for english before callingcommands and avoid local msgs badly interpreted later on (F. Sommer)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-fork.c

    r3568 r3604  
    4545    /*@ pointers **************************************************** */
    4646    FILE *fin = NULL;
     47    char *eng_call = NULL;
    4748
    4849    /*@ initialize data ********************************************* */
     
    5253
    5354    assert_string_is_neither_NULL_nor_zerolength(call);
    54     log_msg(5, "cpaglloo called with '%s'", call);
    55     if ((fin = popen(call, "r"))) {
     55    mr_asprintf(eng_call,"LANG=C LANGUAGE=C %s",call);
     56    log_msg(5, "cpaglloo called with '%s'", eng_call);
     57    if ((fin = popen(eng_call, "r"))) {
    5658        while (!feof(fin)) {
    5759            mr_getline(tmp, fin);
     
    6668        log_OS_error("Unable to open resulting file");
    6769    }
     70    mr_free(eng_call);
    6871    strip_spaces(result);
    6972    log_msg(5, "cpaglloo returns '%s'", result);
Note: See TracChangeset for help on using the changeset viewer.