mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
i18n - utf8 support
- Added more unit tests to verify that utf8 projects and tags are supported.
This commit is contained in:
parent
165001acac
commit
7389ce617a
3 changed files with 11 additions and 1 deletions
|
@ -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 ------------------------------
|
||||
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
an existing task.
|
||||
<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).
|
||||
<li>UTF8 text is now supported in task project names, tags and descriptions.
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue