[4/4] cmd: Rename unicodePipes variable
Frédéric Delanoy
frederic.delanoy at gmail.com
Tue Nov 29 07:39:28 CST 2011
Unicode output from internal command is not limited to pipes, but also applies to plain files
---
programs/cmd/wcmdmain.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index 3966b29..a25b7f3 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -45,7 +45,7 @@ WCHAR quals[MAX_PATH], param1[MAXSTRING], param2[MAXSTRING];
BATCH_CONTEXT *context = NULL;
extern struct env_stack *pushd_directories;
static const WCHAR *pagedMessage = NULL;
-static BOOL unicodePipes = FALSE;
+static BOOL unicodeOutput = FALSE;
#define MAX_WRITECONSOLE_SIZE 65535
@@ -89,7 +89,7 @@ static void WCMD_output_asis_len(const WCHAR *message, DWORD len, HANDLE device)
DWORD convertedChars;
char *buffer;
- if (!unicodePipes) {
+ if (!unicodeOutput) {
if (!(buffer = get_file_buffer()))
return;
@@ -2254,9 +2254,9 @@ int wmain (int argc, WCHAR *argvW[])
} else if (tolowerW(c)=='s') {
opt_s = TRUE;
} else if (tolowerW(c)=='a') {
- unicodePipes=FALSE;
+ unicodeOutput = FALSE;
} else if (tolowerW(c)=='u') {
- unicodePipes=TRUE;
+ unicodeOutput = TRUE;
} else if (tolowerW(c)=='t' && (*argvW)[2]==':') {
opt_t=strtoulW(&(*argvW)[3], NULL, 16);
} else if (tolowerW(c)=='x' || tolowerW(c)=='y') {
--
1.7.7.2
More information about the wine-patches
mailing list