Lets keep the '\n' in (see revision 1.53's commit message)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10299 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
af5393c7a6
commit
4735e8ed53
1 changed files with 5 additions and 5 deletions
|
@ -222,7 +222,7 @@ int load_kbd(unsigned char* filename)
|
|||
{
|
||||
int fd, count, l;
|
||||
int i = 0;
|
||||
unsigned char buf[4];
|
||||
unsigned char buf[4];
|
||||
|
||||
if (filename == NULL) {
|
||||
kbd_loaded = false;
|
||||
|
@ -253,12 +253,12 @@ int load_kbd(unsigned char* filename)
|
|||
kbd_loaded = false;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
FOR_NB_SCREENS(l)
|
||||
utf8decode(buf, ¶m[l].kbd_buf[i]);
|
||||
|
||||
if (param[0].kbd_buf[i] != 0xFEFF && param[0].kbd_buf[i] != '\n' &&
|
||||
param[0].kbd_buf[i] != '\r') /*skip BOM & newlines */
|
||||
|
||||
if (param[0].kbd_buf[i] != 0xFEFF &&
|
||||
param[0].kbd_buf[i] != '\r') /*skip BOM & carriage returns */
|
||||
i++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue