Fossil SCM
Add a comment that contains multi-byte unicode characters. This will be used for testing diff logic.
Commit
d1fc2f4a164370854939935fae35f132e098f69e
Parent
80bfcee892392ad…
1 file changed
+4
-1
+4
-1
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -375,13 +375,16 @@ | ||
| 375 | 375 | */ |
| 376 | 376 | #define SBS_NEWLINE 0x0001 /* End with \n\000 */ |
| 377 | 377 | #define SBS_PAD 0x0002 /* Pad output to width spaces */ |
| 378 | 378 | |
| 379 | 379 | /* |
| 380 | -** Write up to width characters of pLine into z[]. Translate tabs into | |
| 380 | +** Write up to width characters of pLine into p->zLine[]. Translate tabs into | |
| 381 | 381 | ** spaces. Add a newline if SBS_NEWLINE is set. Translate HTML characters |
| 382 | 382 | ** if SBS_HTML is set. Pad the rendering out width bytes if SBS_PAD is set. |
| 383 | +** | |
| 384 | +** This comment contains multi-byte unicode characters (ü, Æ, ð) in order | |
| 385 | +** to test the ability of the diff code to handle such characters. | |
| 383 | 386 | */ |
| 384 | 387 | static void sbsWriteText(SbsLine *p, DLine *pLine, unsigned flags){ |
| 385 | 388 | int n = pLine->h & LENGTH_MASK; |
| 386 | 389 | int i; /* Number of input characters consumed */ |
| 387 | 390 | int j; /* Number of output characters generated */ |
| 388 | 391 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -375,13 +375,16 @@ | |
| 375 | */ |
| 376 | #define SBS_NEWLINE 0x0001 /* End with \n\000 */ |
| 377 | #define SBS_PAD 0x0002 /* Pad output to width spaces */ |
| 378 | |
| 379 | /* |
| 380 | ** Write up to width characters of pLine into z[]. Translate tabs into |
| 381 | ** spaces. Add a newline if SBS_NEWLINE is set. Translate HTML characters |
| 382 | ** if SBS_HTML is set. Pad the rendering out width bytes if SBS_PAD is set. |
| 383 | */ |
| 384 | static void sbsWriteText(SbsLine *p, DLine *pLine, unsigned flags){ |
| 385 | int n = pLine->h & LENGTH_MASK; |
| 386 | int i; /* Number of input characters consumed */ |
| 387 | int j; /* Number of output characters generated */ |
| 388 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -375,13 +375,16 @@ | |
| 375 | */ |
| 376 | #define SBS_NEWLINE 0x0001 /* End with \n\000 */ |
| 377 | #define SBS_PAD 0x0002 /* Pad output to width spaces */ |
| 378 | |
| 379 | /* |
| 380 | ** Write up to width characters of pLine into p->zLine[]. Translate tabs into |
| 381 | ** spaces. Add a newline if SBS_NEWLINE is set. Translate HTML characters |
| 382 | ** if SBS_HTML is set. Pad the rendering out width bytes if SBS_PAD is set. |
| 383 | ** |
| 384 | ** This comment contains multi-byte unicode characters (ü, Æ, ð) in order |
| 385 | ** to test the ability of the diff code to handle such characters. |
| 386 | */ |
| 387 | static void sbsWriteText(SbsLine *p, DLine *pLine, unsigned flags){ |
| 388 | int n = pLine->h & LENGTH_MASK; |
| 389 | int i; /* Number of input characters consumed */ |
| 390 | int j; /* Number of output characters generated */ |
| 391 |