[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pkg-tasktools] Bug#820108: taskwarrior: truncated non-ASCII description
From: |
Apollon Oikonomopoulos |
Subject: |
[pkg-tasktools] Bug#820108: taskwarrior: truncated non-ASCII descriptions |
Date: |
Thu, 11 Jul 2019 10:18:34 +0300 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Control: tags -1 patch
Control: forwarded -1
https://github.com/GothenburgBitFactory/taskwarrior/issues/1852
Hi,
On 16:29 Tue 05 Apr , Jakub Wilk wrote:
> Package: taskwarrior
> Version: 2.5.1+dfsg-1
>
> Taskwarrior to truncate non-ASCII descriptions for tasks that have
> annotations:
>
> $ task add 'Zażółć gęślą jaźń'
> Created task 1.
>
> $ task 1 info | grep ^Description
> Description Zażółć gęślą jaźń
>
> $ task 1 ann muu
> Annotating task 1 'Zażółć gęślą jaźń'.
> Annotated 1 task.
>
> $ task 1 info | grep ^Description
> Description Zażółć gęś
The attached patch fixes the issue for me. It all comes down to
extractLine() mixing display characters and bytes, failing to account
for multi-byte characters. AFAICT, upstream's new code for 2.6.0[1] is
not affected by this bug.
Please consider applying the fix and backporting it to a buster stable
release, as UTF-8 support has been a long-term release goal.
[1]
https://github.com/GothenburgBitFactory/libshared/blob/eadeda5d170bb513e52cf1a00ec2cc9501077bbf/src/shared.cpp#L293
Regards,
Apollon
0011-Fix-non-ASCII-description-truncation.patch
Description: Text Data
- [pkg-tasktools] Bug#820108: taskwarrior: truncated non-ASCII descriptions,
Apollon Oikonomopoulos <=