[OpenBIOS] [commit] r1065 - trunk/openbios-devel/fs/hfsplus
repository service
svn at openbios.org
Sun Oct 7 17:26:50 CEST 2012
Author: mcayland
Date: Sun Oct 7 17:26:49 2012
New Revision: 1065
URL: http://tracker.coreboot.org/trac/openbios/changeset/1065
Log:
Fix HFS+ display for non-ASCII characters.
Replace any non-ASCII characters with a ? to prevent display
errors when converting from Unicode filenames.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
Modified:
trunk/openbios-devel/fs/hfsplus/hfsp_unicode.c
Modified: trunk/openbios-devel/fs/hfsplus/hfsp_unicode.c
==============================================================================
--- trunk/openbios-devel/fs/hfsplus/hfsp_unicode.c Sun Oct 7 17:26:46 2012 (r1064)
+++ trunk/openbios-devel/fs/hfsplus/hfsp_unicode.c Sun Oct 7 17:26:49 2012 (r1065)
@@ -43,7 +43,10 @@
/* might be unrepresentable (or too complicated for us) */
if( ustr[0] || !ustr[1] )
continue;
- *astr++ = ustr[1];
+ if( ustr[1] < 0x20 || ustr[1] >= 0x7f )
+ *astr++ = '?';
+ else
+ *astr++ = ustr[1];
len++;
}
*astr = 0;
More information about the OpenBIOS
mailing list