Show
Ignore:
Timestamp:
04/04/08 22:04:40 (8 months ago)
Author:
miyoshi
Message:

Sync up with Emacs22.2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/nt/cmdproxy.c

    r4190 r4220  
    11/* Proxy shell designed for use with Emacs on Windows 95 and NT. 
    22   Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 
    3       2006, 2007  Free Software Foundation, Inc. 
     3      2006, 2007, 2008  Free Software Foundation, Inc. 
    44 
    55   Accepts subset of Unix sh(1) command-line options, for compatability 
     
    1818GNU Emacs is free software; you can redistribute it and/or modify 
    1919it under the terms of the GNU General Public License as published by 
    20 the Free Software Foundation; either version 2, or (at your option) 
     20the Free Software Foundation; either version 3, or (at your option) 
    2121any later version. 
    2222 
     
    475475  *progname = '\\'; 
    476476 
     477  /* Due to problems with interaction between API functions that use "OEM" 
     478     codepage vs API functions that use the "ANSI" codepage, we need to 
     479     make things consistent by choosing one and sticking with it.  */ 
     480  SetConsoleCP (GetACP()); 
     481  SetConsoleOutputCP (GetACP()); 
     482 
    477483  /* Although Emacs always sets argv[0] to an absolute pathname, we 
    478484     might get run in other ways as well, so convert argv[0] to an