chcp: Add a stub application for changing the codepage.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47960
Signed-off-by: Erich E. Hoover <erich.e.hoover@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Erich E. Hoover 2019-10-18 12:09:25 -06:00 committed by Alexandre Julliard
parent ef2475b4f0
commit 3a01d356f9
4 changed files with 42 additions and 0 deletions

2
configure vendored
View File

@ -1716,6 +1716,7 @@ enable_aspnet_regiis
enable_attrib
enable_cabarc
enable_cacls
enable_chcp_com
enable_clock
enable_cmd
enable_conhost
@ -21089,6 +21090,7 @@ wine_fn_config_makefile programs/aspnet_regiis enable_aspnet_regiis
wine_fn_config_makefile programs/attrib enable_attrib
wine_fn_config_makefile programs/cabarc enable_cabarc
wine_fn_config_makefile programs/cacls enable_cacls
wine_fn_config_makefile programs/chcp.com enable_chcp_com
wine_fn_config_makefile programs/clock enable_clock
wine_fn_config_makefile programs/cmd enable_cmd
wine_fn_config_makefile programs/cmd/tests enable_tests

View File

@ -3891,6 +3891,7 @@ WINE_CONFIG_MAKEFILE(programs/aspnet_regiis)
WINE_CONFIG_MAKEFILE(programs/attrib)
WINE_CONFIG_MAKEFILE(programs/cabarc)
WINE_CONFIG_MAKEFILE(programs/cacls)
WINE_CONFIG_MAKEFILE(programs/chcp.com)
WINE_CONFIG_MAKEFILE(programs/clock)
WINE_CONFIG_MAKEFILE(programs/cmd)
WINE_CONFIG_MAKEFILE(programs/cmd/tests)

View File

@ -0,0 +1,6 @@
MODULE = chcp.com
EXTRADLLFLAGS = -mconsole -municode -mno-cygwin
C_SRCS = \
main.c

33
programs/chcp.com/main.c Normal file
View File

@ -0,0 +1,33 @@
/*
* Copyright 2019 Erich E. Hoover
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(chcp);
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
WINE_FIXME("stub:");
for (i = 0; i < argc; i++)
WINE_FIXME(" %s", wine_dbgstr_w(argv[i]));
WINE_FIXME("\n");
return 0;
}