GTG

Quick Add bar can't create localized (non-ascii) tags

Bug #740927 reported by Tomasz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Medium
Unassigned

Bug Description

(using version 0.2.4-5 from Debian 6)

When I type in the Quick Add the following string to create a task:
zażółć @gęślą @jaźń

a task is created:
zażółć @gęślą @jaźń
@g, @ja,

- Wrong tags (@g, @ ja) are created and assigned.
- Correct tags (put in the title) are not created nor assigned.

Debug output:
2011-03-23 13:02:23,072 - DEBUG - browser:on_task_added:1811 - Add task with ID: 39@1
2011-03-23 13:02:23,073 - DEBUG - browser:on_task_modified:1828 - Modify task with ID: 39@1
2011-03-23 13:02:23,076 - DEBUG - browser:on_task_modified:1828 - Modify task with ID: 39@1
2011-03-23 13:02:23,080 - DEBUG - browser:on_task_modified:1828 - Modify task with ID: 39@1
2011-03-23 13:02:23,148 - DEBUG - browser:general_refresh:1865 - Trigger refresh on taskbrowser.

XML backend data:
        <task id="39@1" status="Active" tags="@g,@ja" uuid="3be03e19-d812-4a2f-92af-a0e1f673a243">
                <title>
                        zażółć @gęslą @jaźń
                </title>
                <modified>
                        2011-03-23T13:02:23
                </modified>
        </task>

(When the title is edited to:
zażółć @gęślą @jaźń @nic

the correct tags (@gęślą, @jaźń) are also created and assigned to the task.)

Command line:
gtg_new_task 'zażółć @gęślą @jaźń'

works right.

Tomasz (nowak2000)
description: updated
description: updated
Revision history for this message
Pititjo (jonathan-barnoud) wrote : Re: [Bug 740927] [NEW] Quick Add bar can't create localized (non-ascii) tags
Download full text (4.6 KiB)

Le 23/03/2011 13:04, Tomasz a écrit :
> Public bug reported:
>
> (using version 0.2.4-5 from Debian 6)
>
> When I type in the Quick Add the following string to create a task:
> zażółć @gęślą @jaźń
>
> a task is created:
> zażółć @gęślą @jaźń
> @g, @ja,
>
> - Wrong tags (@g, @ ja) are created and assigned.
> - Correct tags (put in the title) are not created nor assigned.
>
> Debug output:
> 2011-03-23 13:02:23,072 - DEBUG - browser:on_task_added:1811 - Add task with ID: 39@1
> 2011-03-23 13:02:23,073 - DEBUG - browser:on_task_modified:1828 - Modify task with ID: 39@1
> 2011-03-23 13:02:23,076 - DEBUG - browser:on_task_modified:1828 - Modify task with ID: 39@1
> 2011-03-23 13:02:23,080 - DEBUG - browser:on_task_modified:1828 - Modify task with ID: 39@1
> 2011-03-23 13:02:23,148 - DEBUG - browser:general_refresh:1865 - Trigger refresh on taskbrowser.
>
> XML backend data:
> <task id="39@1" status="Active" tags="@g,@ja" uuid="3be03e19-d812-4a2f-92af-a0e1f673a243">
> <title>
> zażółć @gęslą @jaźń
> </title>
> <modified>
> 2011-03-23T13:02:23
> </modified>
> </task>
>
> (When the title is edited to:
> zażółć @gęślą @jaźń @nic
>
> the correct tags (@gęślą, @jaźń) are also created and assigned to the
> task.)
>
>
> Command line:
> gtg_new_task 'zażółć @gęślą @jaźń'
>
> works right.
>
> ** Affects: gtg
> Importance: Undecided
> Status: New
>
> ** Description changed:
>
> (using version 0.2.4-5 from Debian 6)
>
> 1. When I type in the Quick Add the following string to create a task:
> zażółć @gęślą @jaźń
>
> a task is created:
> zażółć @gęślą @jaźń
> - @g, @ja,
> + @g, @ja,
>
> - Wrong tags (@g, @ ja) are created and assigned.
> - Correct tags (put in the title) are not created nor assigned.
>
> Debug output:
> 2011-03-23 13:02:23,072 - DEBUG - browser:on_task_added:1811 - Add task with ID: 39@1
> 2011-03-23 13:02:23,073 - DEBUG - browser:on_task_modified:1828 - Modify task with ID: 39@1
> 2011-03-23 13:02:23,076 - DEBUG - browser:on_task_modified:1828 - Modify task with ID: 39@1
> 2011-03-23 13:02:23,080 - DEBUG - browser:on_task_modified:1828 - Modify task with ID: 39@1
> 2011-03-23 13:02:23,148 - DEBUG - browser:general_refresh:1865 - Trigger refresh on taskbrowser.
>
> + XML backend data:
> +<task id="39@1" status="Active" tags="@g,@ja" uuid="3be03e19-d812-4a2f-92af-a0e1f673a243">
> +<title>
> + zażółć @gęslą @jaźń
> +</title>
> +<modified>
> + 2011-03-23T13:02:23
> +</modified>
> +</task>
> +
>
> (When the title is edited to:
> zażółć @gęślą @jaźń @nic
>
> the correct tags (@gęślą, @jaźń) are also created and assigned to the
> task.)
>
> ** Description changed:
>
> (using version 0.2.4-5 from Debian 6)
>
> - 1. When I type in the Quick Add the following string to create a task:
> + When I type in the Quick Add the following string to create a task:
> zażółć @gęślą @jaźń
>
> a task is created:
> zażółć @gęślą @jaźń
> @g, @ja,
>
> - Wrong tags (@g, @ ja) are created and assigned.
> ...

Read more...

Revision history for this message
Tomasz (nowak2000) wrote :

Thanks for your suggestion, please find a working patch attached.

Changed in gtg:
milestone: none → 0.2.9
Changed in gtg:
assignee: nobody → Lionel Dricot (ploum)
importance: Undecided → Medium
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

the patch was not working anymore but I fixed the bug in rev 962 anyway. Thanks for the fix!

Changed in gtg:
status: New → Fix Committed
Izidor Matušov (izidor)
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.