Fossil SCM
In unicode-pathnames.test, give the marks pair its canonical NFD spelling. Prompted by macOS, although the tests dynamically distinguish casefolding behaviour and do not care about filesystem or OS.
Commit
af4f568b3b35832af4372374b2e5a632239a8acf186b8862003359eb7857870d
Parent
3e3fb37a2836788…
1 file changed
+6
-6
+6
-6
| --- test/unicode-pathnames.test | ||
| +++ test/unicode-pathnames.test | ||
| @@ -31,15 +31,15 @@ | ||
| 31 | 31 | # every other byte as written, so the tests of names outside ASCII are |
| 32 | 32 | # marked knownBug. Fossil also checks out, updates to and commits a |
| 33 | 33 | # version that has two names for one file, so those tests are marked |
| 34 | 34 | # knownBug for ASCII names too. |
| 35 | 35 | # |
| 36 | -# On macOS Fossil converts every pathname from Apple's decomposed form | |
| 37 | -# to NFC, so some of these pairs will end up normalised to the same name | |
| 38 | -# before fossil gets to compare. "fossil test-echo" reliably detects this. | |
| 39 | -# With case-sensitive on we expect to find the file, and with it off | |
| 40 | -# we won't find the file, and it's an actual bug. | |
| 36 | +# On macOS fossil_path_to_utf8 (src/utf8.c) recomposes each argument | |
| 37 | +# before fossil compares it; see the comments there for details and | |
| 38 | +# Apple references. The loop below clears knownBug for pairs where | |
| 39 | +# fossil_path_to_utf8 will convert to the checked-in name, such that | |
| 40 | +# "fossil test-echo" prints the converted argument. | |
| 41 | 41 | # |
| 42 | 42 | # Case folding maps both the sharp s, U+00DF, and the capital sharp s, |
| 43 | 43 | # U+1E9E, to the two letters "ss", so by D145 a name with a sharp s and |
| 44 | 44 | # the same name with "ss" are one file. ext4 with case folding folds |
| 45 | 45 | # each sharp s to "ss" and has one file for the two names. NTFS and |
| @@ -101,11 +101,11 @@ | ||
| 101 | 101 | "\u0424\u0410\u0419\u041b.TXT" knownBug \ |
| 102 | 102 | sigma "\u03bf\u03b4\u03cc\u03c2.txt" \ |
| 103 | 103 | "\u039f\u0394\u038c\u03a3.TXT" knownBug \ |
| 104 | 104 | nfd "r\u00e9sum\u00e9.txt" "re\u0301sume\u0301.txt" knownBug \ |
| 105 | 105 | nfd-case "cr\u00e8me.txt" "CRE\u0300ME.TXT" knownBug \ |
| 106 | - marks "\u1ead.txt" "a\u0302\u0323.txt" knownBug \ | |
| 106 | + marks "\u1ead.txt" "a\u0323\u0302.txt" knownBug \ | |
| 107 | 107 | angstrom "\u00e5.txt" "\u212b.TXT" knownBug \ |
| 108 | 108 | hangul "\ud55c\uae00.txt" \ |
| 109 | 109 | "\u1112\u1161\u11ab\u1100\u1173\u11af.txt" knownBug \ |
| 110 | 110 | nfd-dir "caf\u00e9/menu.txt" "CAFE\u0301/MENU.TXT" knownBug \ |
| 111 | 111 | sharp-s "stra\u00dfe.txt" "STRASSE.TXT" knownBug \ |
| 112 | 112 |
| --- test/unicode-pathnames.test | |
| +++ test/unicode-pathnames.test | |
| @@ -31,15 +31,15 @@ | |
| 31 | # every other byte as written, so the tests of names outside ASCII are |
| 32 | # marked knownBug. Fossil also checks out, updates to and commits a |
| 33 | # version that has two names for one file, so those tests are marked |
| 34 | # knownBug for ASCII names too. |
| 35 | # |
| 36 | # On macOS Fossil converts every pathname from Apple's decomposed form |
| 37 | # to NFC, so some of these pairs will end up normalised to the same name |
| 38 | # before fossil gets to compare. "fossil test-echo" reliably detects this. |
| 39 | # With case-sensitive on we expect to find the file, and with it off |
| 40 | # we won't find the file, and it's an actual bug. |
| 41 | # |
| 42 | # Case folding maps both the sharp s, U+00DF, and the capital sharp s, |
| 43 | # U+1E9E, to the two letters "ss", so by D145 a name with a sharp s and |
| 44 | # the same name with "ss" are one file. ext4 with case folding folds |
| 45 | # each sharp s to "ss" and has one file for the two names. NTFS and |
| @@ -101,11 +101,11 @@ | |
| 101 | "\u0424\u0410\u0419\u041b.TXT" knownBug \ |
| 102 | sigma "\u03bf\u03b4\u03cc\u03c2.txt" \ |
| 103 | "\u039f\u0394\u038c\u03a3.TXT" knownBug \ |
| 104 | nfd "r\u00e9sum\u00e9.txt" "re\u0301sume\u0301.txt" knownBug \ |
| 105 | nfd-case "cr\u00e8me.txt" "CRE\u0300ME.TXT" knownBug \ |
| 106 | marks "\u1ead.txt" "a\u0302\u0323.txt" knownBug \ |
| 107 | angstrom "\u00e5.txt" "\u212b.TXT" knownBug \ |
| 108 | hangul "\ud55c\uae00.txt" \ |
| 109 | "\u1112\u1161\u11ab\u1100\u1173\u11af.txt" knownBug \ |
| 110 | nfd-dir "caf\u00e9/menu.txt" "CAFE\u0301/MENU.TXT" knownBug \ |
| 111 | sharp-s "stra\u00dfe.txt" "STRASSE.TXT" knownBug \ |
| 112 |
| --- test/unicode-pathnames.test | |
| +++ test/unicode-pathnames.test | |
| @@ -31,15 +31,15 @@ | |
| 31 | # every other byte as written, so the tests of names outside ASCII are |
| 32 | # marked knownBug. Fossil also checks out, updates to and commits a |
| 33 | # version that has two names for one file, so those tests are marked |
| 34 | # knownBug for ASCII names too. |
| 35 | # |
| 36 | # On macOS fossil_path_to_utf8 (src/utf8.c) recomposes each argument |
| 37 | # before fossil compares it; see the comments there for details and |
| 38 | # Apple references. The loop below clears knownBug for pairs where |
| 39 | # fossil_path_to_utf8 will convert to the checked-in name, such that |
| 40 | # "fossil test-echo" prints the converted argument. |
| 41 | # |
| 42 | # Case folding maps both the sharp s, U+00DF, and the capital sharp s, |
| 43 | # U+1E9E, to the two letters "ss", so by D145 a name with a sharp s and |
| 44 | # the same name with "ss" are one file. ext4 with case folding folds |
| 45 | # each sharp s to "ss" and has one file for the two names. NTFS and |
| @@ -101,11 +101,11 @@ | |
| 101 | "\u0424\u0410\u0419\u041b.TXT" knownBug \ |
| 102 | sigma "\u03bf\u03b4\u03cc\u03c2.txt" \ |
| 103 | "\u039f\u0394\u038c\u03a3.TXT" knownBug \ |
| 104 | nfd "r\u00e9sum\u00e9.txt" "re\u0301sume\u0301.txt" knownBug \ |
| 105 | nfd-case "cr\u00e8me.txt" "CRE\u0300ME.TXT" knownBug \ |
| 106 | marks "\u1ead.txt" "a\u0323\u0302.txt" knownBug \ |
| 107 | angstrom "\u00e5.txt" "\u212b.TXT" knownBug \ |
| 108 | hangul "\ud55c\uae00.txt" \ |
| 109 | "\u1112\u1161\u11ab\u1100\u1173\u11af.txt" knownBug \ |
| 110 | nfd-dir "caf\u00e9/menu.txt" "CAFE\u0301/MENU.TXT" knownBug \ |
| 111 | sharp-s "stra\u00dfe.txt" "STRASSE.TXT" knownBug \ |
| 112 |