Skip to content

Commit

Permalink
Prep v239.4: Another Unicode test has slithered in. (#99)
Browse files Browse the repository at this point in the history
When migrating the latest stable commits, another test that requires
an Unicode locale has made its way back in undetected.

Bug: #99
Signed-Off-By: Sven Eden <sven.eden@prydeworx.com>
  • Loading branch information
Yamakuzure committed Nov 26, 2018
1 parent 84fdc0f commit 2e81b94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pwx
Submodule pwx updated 1 files
+8 −4 check_tree.pl
6 changes: 6 additions & 0 deletions src/test/test-format-table.c
Expand Up @@ -22,6 +22,9 @@ static void test_issue_9549(void) {
TABLE_STRING, "Wed 2018-07-11 00:10:33 JST",
TABLE_STRING, "Wed 2018-07-11 00:16:00 JST") >= 0);

#if 1 /// elogind supports systems with non-UTF-8 locales, the next would fail there
if (is_locale_utf8()) {
#endif // 1
table_set_width(table, 75);
assert_se(table_format(table, &formatted) >= 0);

Expand All @@ -30,6 +33,9 @@ static void test_issue_9549(void) {
"NAME TYPE RO USAGE CREATED MODIFIED \n"
"foooo raw no 673.6M Wed 2018-07-11 00:10:33 J… Wed 2018-07-11 00:16:00 JST\n"
));
#if 1 /// elogind supports systems with non-UTF-8 locales, the previous would fail there
}
#endif // 1
}

int main(int argc, char *argv[]) {
Expand Down

0 comments on commit 2e81b94

Please sign in to comment.