Commit 3c2c2f427905040c1513d0c51d637689cba48346

Authored by Remy Bohmer
Committed by Remy Böhmer
1 parent bebfc6ef3e

Remove non-ascii characters from fat code

This code contains some non-ascii characters in comment lines and code.
Most editors do not display those characters properly and editing those
files results always in diffs at these places which are usually not required
to be changed at all. This is error prone.

So, remove those weird characters and replace them by normal C-style
equivalents for which the proper defines were already in the header.

Signed-off-by: Remy Bohmer <linux@bohmer.net>

Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -184,7 +184,7 @@
184 184 if (*s_name == DELETED_FLAG)
185 185 *s_name = '\0';
186 186 else if (*s_name == aRING)
187   - *s_name = 'å';
  187 + *s_name = DELETED_FLAG;
188 188 downcase (s_name);
189 189 }
190 190  
... ... @@ -489,7 +489,7 @@
489 489  
490 490 l_name[idx] = '\0';
491 491 if (*l_name == DELETED_FLAG) *l_name = '\0';
492   - else if (*l_name == aRING) *l_name = 'å';
  492 + else if (*l_name == aRING) *l_name = DELETED_FLAG;
493 493 downcase(l_name);
494 494  
495 495 /* Return the real directory entry */
... ... @@ -67,7 +67,7 @@
67 67 #define ATTR_VFAT (ATTR_RO | ATTR_HIDDEN | ATTR_SYS | ATTR_VOLUME)
68 68  
69 69 #define DELETED_FLAG ((char)0xe5) /* Marks deleted files when in name[0] */
70   -#define aRING 0x05 /* Used to represent 'å' in name[0] */
  70 +#define aRING 0x05 /* Used as special character in name[0] */
71 71  
72 72 /* Indicates that the entry is the last long entry in a set of long
73 73 * dir entries