On Sat, 13 Sep 2014 15:00:32 -0700
Simon Michael <[email protected]> wrote:

> Secondly, I'm seeing trouble matching on non-ascii characters. So eg 
> tag:Payee=K matches, but tag:Payee=Č doesn't, even with a locale 
> configured (I used LANG=en_US.utf-8). This should be working, see if
> you can reproduce and if so maybe open a bug.

Here it works with my locale:

LANG=hr_HR.UTF-8
LANGUAGE=
LC_CTYPE="hr_HR.UTF-8"
LC_NUMERIC="hr_HR.UTF-8"
LC_TIME="hr_HR.UTF-8"
LC_COLLATE="hr_HR.UTF-8"
LC_MONETARY="hr_HR.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="hr_HR.UTF-8"
LC_NAME="hr_HR.UTF-8"
LC_ADDRESS="hr_HR.UTF-8"
LC_TELEPHONE="hr_HR.UTF-8"
LC_MEASUREMENT="hr_HR.UTF-8"
LC_IDENTIFICATION="hr_HR.UTF-8"
LC_ALL=


> Seems to be working for me:
> 
> $ hledger -f t.j print
> 2004/01/19 milk, sugar, cosmetic
>      Expenses:Food:Groceries       $ 44.00 ; Payee: "Kaufland, ČK"
>      Assets:Checking              $ -44.00
> 
> 2004/01/19 another
>      Expenses:Food:Groceries       $ 44.00 ; Payee: other
>      Assets:Checking              $ -44.00
> 
> $ hledger -f t.j reg Food tag:Payee
> 2004/01/19 milk, sugar, cosm..  Ex:Food:Groceries  $ 44.00  $ 44.00
> 2004/01/19 another              Ex:Food:Groceries  $ 44.00  $ 88.00
> $ hledger -f t.j reg Food tag:Payee=Kaufland
> 2004/01/19 milk, sugar, cosm..  Ex:Food:Groceries  $ 44.00  $ 44.00

You're right. I discovered the proper syntax after I sent the post.

However the problem persists that it's not possible to see the tag in
the output.

> hledger ignores leading/trailing space in the tag value, so it's fine
> to put a space after :.

OK. I got it. The persisting problem is having comma in the tag name or
being able to quote the tag name.


Sincerely,
Gour

-- 
One must deliver himself with the help of his mind, and not 
degrade himself. The mind is the friend of the conditioned soul, 
and his enemy as well.


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to