Fixed bug displaying unicode box characters.
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 3 Apr 2013 07:20:13 +0000 (09:20 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 4 Apr 2013 16:59:48 +0000 (18:59 +0200)
Also added a test for this.  Closes bug #38647

src/output/ascii.c
tests/output/ascii.at

index 756235c5cbf6cae7183e19d4a287ff6566840c7a..bc1b225a405f5eab2cba4c641d67dea895ade199 100644 (file)
@@ -120,6 +120,7 @@ static const ucs4_t unicode_box_chars[N_BOX] =
     0x2564, 0x256a, 0x256c,
     0x2564, 0x256a, 0x256c,
     0x2554, 0x2560, 0x2560,
+    0x2560, 0x256c, 0x256c,
     0x2566, 0x256c, 0x256c,
   };
 
index a3f66b933be8bb5afdaa570d7799b3282db5dfc6..b4de68808ee8d2f9f985be211e93e5aab0087058 100644 (file)
@@ -627,3 +627,29 @@ included in the variable list.
 ])
 
 AT_CLEANUP
+
+AT_SETUP([ASCII unicode box chars])
+
+AT_DATA([uc.sps], [dnl
+SET FORMAT=F8.4.
+DATA LIST NOTABLE LIST /x * .
+BEGIN DATA.
+1
+2
+3
+END DATA.
+
+DESCRIPTIVES X.
+])
+
+
+AT_CHECK([pspp -O box=unicode uc.sps], [0], [dnl
+Valid cases = 3; cases with missing value(s) = 0.
+╭────────╥─┬──────┬───────┬───────┬───────╮
+│Variable║N│ Mean │Std Dev│Minimum│Maximum│
+╞════════╬═╪══════╪═══════╪═══════╪═══════╡
+│x       ║3│2.0000│ 1.0000│ 1.0000│ 3.0000│
+╰────────╨─┴──────┴───────┴───────┴───────╯
+])
+
+AT_CLEANUP