Add a wrapper for fopen. On unix-like systems just pass-through. On
windows use unicode version.
This commit is contained in:
parent
ae5540d3d4
commit
bb338aaf24
27 changed files with 97 additions and 41 deletions
|
@ -482,7 +482,7 @@ main (int argc, char *argv[])
|
|||
}
|
||||
|
||||
if (arguments.input)
|
||||
in = fopen (arguments.input, "r");
|
||||
in = grub_util_fopen (arguments.input, "r");
|
||||
else
|
||||
in = stdin;
|
||||
|
||||
|
@ -491,7 +491,7 @@ main (int argc, char *argv[])
|
|||
strerror (errno));
|
||||
|
||||
if (arguments.output)
|
||||
out = fopen (arguments.output, "wb");
|
||||
out = grub_util_fopen (arguments.output, "wb");
|
||||
else
|
||||
out = stdout;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue