diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-08 15:02:26 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-08 15:02:26 +0000 |
commit | 9ce77aa55415bf94d11f7a3ff3bcf0df57a3408c (patch) | |
tree | 695b0450ae3552be36e1576ae12f98b86cc04bd7 /apps/gui/gwps-common.c | |
parent | fd19b8dba443b24edf9a669b34f65066aba784cc (diff) | |
download | rockbox-9ce77aa55415bf94d11f7a3ff3bcf0df57a3408c.tar.gz rockbox-9ce77aa55415bf94d11f7a3ff3bcf0df57a3408c.zip |
Skip leading UTF8 BOM if present. Fixes the first line of the WPS not being understood as a comment when it is one.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13074 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r-- | apps/gui/gwps-common.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 42ba17ad11..62a068f21d 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -60,21 +60,6 @@ | |||
60 | /* 3% of 30min file == 54s step size */ | 60 | /* 3% of 30min file == 54s step size */ |
61 | #define MIN_FF_REWIND_STEP 500 | 61 | #define MIN_FF_REWIND_STEP 500 |
62 | 62 | ||
63 | #if 0 | ||
64 | /* Skip leading UTF-8 BOM, if present. */ | ||
65 | static char* skip_utf8_bom(char* buf) | ||
66 | { | ||
67 | unsigned char* s = (unsigned char*) buf; | ||
68 | |||
69 | if(s[0] == 0xef && s[1] == 0xbb && s[2] == 0xbf) | ||
70 | { | ||
71 | buf += 3; | ||
72 | } | ||
73 | |||
74 | return buf; | ||
75 | } | ||
76 | #endif | ||
77 | |||
78 | /* draws the statusbar on the given wps-screen */ | 63 | /* draws the statusbar on the given wps-screen */ |
79 | #ifdef HAVE_LCD_BITMAP | 64 | #ifdef HAVE_LCD_BITMAP |
80 | void gui_wps_statusbar_draw(struct gui_wps *wps, bool force) | 65 | void gui_wps_statusbar_draw(struct gui_wps *wps, bool force) |