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
|
@ -474,7 +474,7 @@ argp_parser (int key, char *arg, struct argp_state *state)
|
|||
FILE *f;
|
||||
ssize_t real_size;
|
||||
grub_uint8_t buf[1024];
|
||||
f = fopen (arg, "rb");
|
||||
f = grub_util_fopen (arg, "rb");
|
||||
if (!f)
|
||||
{
|
||||
printf (_("%s: error:"), program_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue