Add a wrapper for fopen. On unix-like systems just pass-through. On

windows use unicode version.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-13 20:36:28 +02:00
parent ae5540d3d4
commit bb338aaf24
27 changed files with 97 additions and 41 deletions

View file

@ -236,7 +236,7 @@ main (int argc, char *argv[])
text = arguments.text;
else
{
FILE *in = fopen (arguments.input, "r");
FILE *in = grub_util_fopen (arguments.input, "r");
size_t s;
if (!in)
grub_util_error (_("cannot open `%s': %s"), arguments.input,
@ -253,7 +253,7 @@ main (int argc, char *argv[])
}
if (arguments.output)
out = fopen (arguments.output, "wb");
out = grub_util_fopen (arguments.output, "wb");
else
out = stdout;
if (!out)