Fossil SCM

Add a comment that contains multi-byte unicode characters. This will be used for testing diff logic.

drh 2012-06-20 10:57 UTC trunk
Commit d1fc2f4a164370854939935fae35f132e098f69e
1 file changed +4 -1
+4 -1
--- src/diff.c
+++ src/diff.c
@@ -375,13 +375,16 @@
375375
*/
376376
#define SBS_NEWLINE 0x0001 /* End with \n\000 */
377377
#define SBS_PAD 0x0002 /* Pad output to width spaces */
378378
379379
/*
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
381381
** spaces. Add a newline if SBS_NEWLINE is set. Translate HTML characters
382382
** 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.
383386
*/
384387
static void sbsWriteText(SbsLine *p, DLine *pLine, unsigned flags){
385388
int n = pLine->h & LENGTH_MASK;
386389
int i; /* Number of input characters consumed */
387390
int j; /* Number of output characters generated */
388391
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button