Post Reply 
50g: copy all stored objects to SD card individually
10-20-2016, 10:19 PM
Post: #32
RE: 50g: copy all stored objects to SD card individually
I have reformatted the SDLIB hex dump somewhat:
Quote:"lcase":
+000: 4C 43 41 53-45 20 20 20-20 20 20 00-10 64 CC B6 LCASE
+010: 53 49 53 49-00 00 CC B6-53 49 03 00-13 00 00 00
All-lowercase name fitting into 8.3 scheme, so the case info is stored in the NT case bits. IIRC, bit 4 was meant for the extension, not the name, so shouldn't this read 08h instead of 10h?
Quote:"lcase;;;;;;;":
+020: 41 6C 00 63-00 61 00 73-00 65 00 0F-00 E8 3B 00
+030: 00 00 FF FF-FF FF FF FF-FF FF 00 00-FF FF FF FF
Al.c.a.s.e...è;...ÿÿÿÿÿÿÿÿ..ÿÿÿÿ

+040: 4C 43 41 53-45 5F 7E 31-20 20 20 00-00 00 CF B6 LCASE_~1
+050: 53 49 53 49-00 00 CF B6-53 49 04 00-13 00 00 00
All but one semicolon stripped off by library code as they are not needed here. LFN entry created because ; is not a valid filename character in an SFN.

Claudio, would the remaining ; have been stripped off as well, if the volume would not already hold another file named "lcase"?
Quote:"Mixcase":
+060: 41 4D 00 69-00 78 00 63-00 61 00 0F-00 05 73 00
+070: 65 00 00 00-FF FF FF FF-FF FF 00 00-FF FF FF FF
AM.i.x.c.a....s.e...ÿÿÿÿÿÿ..ÿÿÿÿ

+080: 4D 49 58 43-41 53 45 20-20 20 20 00-00 00 D0 B6 MIXCASE
+090: 53 49 53 49-00 00 D0 B6-53 49 05 00-13 00 00 00
Quote:"CamelC":
+0A0: 41 43 00 61-00 6D 00 65-00 6C 00 0F-00 D2 43 00
+0B0: 00 00 FF FF-FF FF FF FF-FF FF 00 00-FF FF FF FF
AC.a.m.e.l...ÒC...ÿÿÿÿÿÿÿÿ..ÿÿÿÿ

+0C0: 43 41 4D 45-4C 43 20 20-20 20 20 00-00 64 D0 B6 CAMELC
+0D0: 53 49 53 49-00 00 D0 B6-53 49 06 00-13 00 00 00
Quote:"UPCASE":
+0E0: 55 50 43 41-53 45 20 20-20 20 20 00-00 00 D1 B6 UPCASE
+0F0: 53 49 53 49-00 00 D1 B6-53 49 07 00-13 00 00 00
No LFN created as all-uppercase and still fitting into 8.3 scheme.
Quote:"SPECIÄL":
+100: 53 50 45 43-49 C4 4C 20-20 20 20 00-00 64 D1 B6 SPECIÄL
+110: 53 49 53 49-00 00 D1 B6-53 49 08 00-13 00 00 00
No LFN created as detected as all-uppercase and still fitting into 8.3 scheme. In general, if codepoint C4h will be considered as an uppercase letter depends on codepage and country settings, so other operating systems may treat it as "special character" and create a LFN entry instead.
Quote:"speziäl":
+120: 53 50 45 5A-49 E4 4C 20-20 20 20 00-10 64 D1 B6 SPEZIäL
+130: 53 49 53 49-00 00 D1 B6-53 49 09 00-13 00 00 00
No LFN created as detected as all-lowercase and still fitting into 8.3 scheme. In general, if codepoint E4h will be considered as lowercase letter depends on codepage and country settings, so other operating systems may treat it as "special character" and create a LFN entry instead. This is a bit risky, because if E4h will be treated as lowercase letter on some system, it may not be able to access the file (as no lowercase letters are allowed in SFNs).
Since this file has only a name and no extension, shouldn't the bit flag read 08h rather than 10h?
Quote:"specÿal":
+140: 53 50 45 43-FF 41 4C 20-20 20 20 00-10 00 D2 B6 SPECÿAL
+150: 53 49 53 49-00 00 D2 B6-53 49 0A 00-13 00 00 00
Same here.
Quote:"specil":
+160: 53 50 45 43-49 9E 4C 20-20 20 20 00-10 64 D2 B6 SPECIžL
+170: 53 49 53 49-00 00 D2 B6-53 49 0B 00-13 00 00 00
Greetings,

Matthias


--
"Programs are poems for computers."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 50g: copy all stored objects to SD card individually - matthiaspaul - 10-20-2016 10:19 PM



User(s) browsing this thread: 1 Guest(s)