From 7389ce617aba6067a8e907bf01251e25a560b58e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 19 Mar 2009 19:46:41 -0400 Subject: [PATCH] i18n - utf8 support - Added more unit tests to verify that utf8 projects and tags are supported. --- ChangeLog | 1 + html/task.html | 1 + src/tests/utf8.t | 10 +++++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c806a7fca..a9a613e64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ an existing task. + Added support for the "weekdays" recurrence, which means a task can recur five times a week, and not on weekends (thanks to Chris Pride). + + UTF8 text is now supported in task project names, tags and descriptions. ------ old releases ------------------------------ diff --git a/html/task.html b/html/task.html index 3ac2a1346..5e994f555 100644 --- a/html/task.html +++ b/html/task.html @@ -102,6 +102,7 @@ an existing task.
  • Added support for the "weekdays" recurrence, which means a task can recur five times a week, and not on weekends (thanks to Chris Pride). +
  • UTF8 text is now supported in task project names, tags and descriptions.

    diff --git a/src/tests/utf8.t b/src/tests/utf8.t index 6fd87f78f..bc6e0c6c7 100755 --- a/src/tests/utf8.t +++ b/src/tests/utf8.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 4; +use Test::More tests => 6; # Create the rc file. if (open my $fh, '>', 'utf8.rc') @@ -61,6 +61,14 @@ my $output = qx{../task rc:utf8.rc ls}; diag ($output); like ($output, qr/17/, 'all 17 tasks shown'); +qx{../task rc:utf8.rc add project:Çirçös utf8 in project}; +my $output = qx{../task rc:utf8.rc ls project:Çirçös}; +like ($output, qr/Çirçös.+utf8 in project/, 'utf8 in project works'); + +qx{../task rc:utf8.rc add utf8 in tag +☺}; +my $output = qx{../task rc:utf8.rc ls +☺}; +like ($output, qr/utf8 in tag/, 'utf8 in tag works'); + # Cleanup. unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data');