mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-18 00:54:27 -04:00
[loc] persits the user-selected locale
* ...since it seems this is what most Rufus users want. * Also fix a typo in the Malay translation (reported by hyxer) * Closes #250
This commit is contained in:
parent
36693d2144
commit
63e1fe3d55
4 changed files with 11 additions and 10 deletions
|
@ -424,7 +424,7 @@ BOOL get_loc_data_file(const char* filename, loc_cmd* lcmd)
|
|||
if (!eol)
|
||||
loc_line_nr += line_nr_incr;
|
||||
get_loc_data_line(buf);
|
||||
goto out;
|
||||
break;
|
||||
case '\r':
|
||||
case '\n':
|
||||
if (escape_sequence) {
|
||||
|
@ -502,8 +502,8 @@ BOOL get_loc_data_file(const char* filename, loc_cmd* lcmd)
|
|||
}
|
||||
break;
|
||||
}
|
||||
if (ftell(fd) > end_offset)
|
||||
goto out;
|
||||
if ((c == EOF) || (ftell(fd) > end_offset))
|
||||
break;
|
||||
// Have at least 2 chars extra, for \r\n sequences
|
||||
if (i >= bufsize-2) {
|
||||
bufsize *= 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue