Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
67910630
Commit
67910630
authored
Oct 25, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
help: print
UTF-8
BOM in vlc-help.txt on Windows
parent
4c835cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
src/config/help.c
src/config/help.c
+5
-8
No files found.
src/config/help.c
View file @
67910630
...
...
@@ -695,8 +695,6 @@ static void Version( void )
*****************************************************************************/
static
void
ShowConsole
(
void
)
{
FILE
*
f_help
=
NULL
;
if
(
getenv
(
"PWD"
)
)
return
;
/* Cygwin shell or Wine */
if
(
!
AllocConsole
()
)
return
;
...
...
@@ -710,14 +708,13 @@ static void ShowConsole( void )
freopen
(
"CONOUT$"
,
"w"
,
stderr
);
freopen
(
"CONIN$"
,
"r"
,
stdin
);
f_help
=
fopen
(
"vlc-help.txt"
,
"wt"
);
if
(
f_help
!=
NULL
)
if
(
freopen
(
"vlc-help.txt"
,
"wt"
,
stdout
)
!=
NULL
)
{
fclose
(
f_help
);
freopen
(
"vlc-help.txt"
,
"wt"
,
stdout
);
utf8_fprintf
(
stderr
,
_
(
"
\n
Dumped content to vlc-help.txt file.
\n
"
)
);
fputs
(
"
\xEF\xBB\xBF
"
,
stdout
);
fprintf
(
stderr
,
_
(
"
\n
Dumped content to vlc-help.txt file.
\n
"
)
);
}
else
freopen
(
"CONOUT$"
,
"w"
,
stdout
);
else
freopen
(
"CONOUT$"
,
"w"
,
stdout
);
}
/*****************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment