[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:
Pete Batard 2013-12-22 18:28:38 +00:00
parent 36693d2144
commit 63e1fe3d55
4 changed files with 11 additions and 10 deletions

View file

@ -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;