[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <bug>: invoice_id doesnt exept german Unlaute 'ü'

From: Karsten Hilbert
Subject: Re: <bug>: invoice_id doesnt exept german Unlaute 'ü'
Date: Thu, 5 Dec 2019 11:58:55 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

Hi Marc,

> user comment  : invoice_id doesnt exept german Unlaute 'ü'
> client version: 1.7.8

The problem you are seeing

> 2019-12-05 10:19:17  DEBUG     gm.gui        [139827099252544 MainThread]  
> (/usr/share/gnumed/Gnumed/wxpython/
>  #252): unhandled exception caught:
> Traceback (most recent call last):
>   File "/usr/share/gnumed/Gnumed/wxpython/", line 801, in 
> _on_left_extra_button_pressed
>     if not self.__left_extra_button_callback(item_data):
>   File "/usr/share/gnumed/Gnumed/wxpython/", line 1285, in 
> _invoice_selected_items
>     bill = create_bill_from_items(bill_items)
>   File "/usr/share/gnumed/Gnumed/wxpython/", line 507, in 
> create_bill_from_items
>     if gmBilling.lock_invoice_id(invoice_id):
>   File "/usr/share/gnumed/Gnumed/business/", line 629, in 
> lock_invoice_id
>     crc32 = zlib.crc32(invoice_id)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 
> 5: ordinal not in range(128)

came about due to the fact the Python documentation did not
state that crc32/adler32() implicitely convert input, if
needed. I have fixed this problem by adding an explicit
encoding step before passing in invoice IDs.

The fix will be in 1.7.9, meanwhile you might want to try
copying the attached file into the 1.7.8 tree, but do note
that I haven't tested that to work.

GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B

Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]