i18n - utf8 support
- Added more unit tests to verify that utf8 projects and tags are supported.
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
an existing task.
|
an existing task.
|
||||||
+ Added support for the "weekdays" recurrence, which means a task can recur
|
+ Added support for the "weekdays" recurrence, which means a task can recur
|
||||||
five times a week, and not on weekends (thanks to Chris Pride).
|
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 ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -102,6 +102,7 @@
|
|||||||
an existing task.
|
an existing task.
|
||||||
<li>Added support for the "weekdays" recurrence, which means a task can recur
|
<li>Added support for the "weekdays" recurrence, which means a task can recur
|
||||||
five times a week, and not on weekends (thanks to Chris Pride).
|
five times a week, and not on weekends (thanks to Chris Pride).
|
||||||
|
<li>UTF8 text is now supported in task project names, tags and descriptions.
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Test::More tests => 4;
|
use Test::More tests => 6;
|
||||||
|
|
||||||
# Create the rc file.
|
# Create the rc file.
|
||||||
if (open my $fh, '>', 'utf8.rc')
|
if (open my $fh, '>', 'utf8.rc')
|
||||||
@@ -61,6 +61,14 @@ my $output = qx{../task rc:utf8.rc ls};
|
|||||||
diag ($output);
|
diag ($output);
|
||||||
like ($output, qr/17/, 'all 17 tasks shown');
|
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.
|
# Cleanup.
|
||||||
unlink 'pending.data';
|
unlink 'pending.data';
|
||||||
ok (!-r 'pending.data', 'Removed pending.data');
|
ok (!-r 'pending.data', 'Removed pending.data');
|
||||||
|
|||||||
Reference in New Issue
Block a user