Ticket #7: cp.diff

File cp.diff, 564 bytes (added by KO Myung-Hun, 15 years ago)

Set 'WORKPLACE_PRIMARY_CP' to '?'

  • c/os2init.c

    diff -uNrb 4os2.org/c/os2init.c 4os2.patch/c/os2init.c
    old new  
    355355    // set COMSPEC
    356356    sprintf( gszCmdline, COMSPEC_OS2, COMSPEC, _pgmptr );
    357357    add_variable( gszCmdline );
     358
     359    // set WORKPLACE_PRIMARY_CP so that new session inherits active codepage
     360    // from current session on OS/2 4.5 or later
     361    if( get_variable( "WORKPLACE_PRIMARY_CP" ))
     362        add_variable( "WORKPLACE_PRIMARY_CP=?" );
    358363}
    359364
    360365