Mean depth units bug

Lubomir I. Ivanov neolit123 at gmail.com
Sat Jan 31 09:51:30 PST 2015


On 31 January 2015 at 19:37, Sergey Starosek <sergey-starosek at yandex.ru> wrote:
> 31.01.2015, 20:29, "Lubomir I. Ivanov" <neolit123 at gmail.com>:
>> On 31 January 2015 at 19:21, Sergey Starosek <sergey-starosek at yandex.ru> wrote:
>>>  Seems there's a bug with mean depth units on a profile graph. It takes only first byte to display which fails for multi-byte encodings.
>>>  This is happens somewhere at DiveMeanDepthItem::createTextItem() (diveprofileitem.cpp:625) but I don't know how to fix this.
>>
>> strange, it doesn't happen for me (if i understand correctly what you
>> describe); can you post a screenshot?
>
> Mean depth units should read there as cyrillic 'м', but it shows
> first byte which is 0xD0 in UTF-8 I guess.
>

yes Ð is the interpreted 0xD0 as ASCII.
thanks for the bug report, here is a patch that should fix that.

lubomir
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-DiveMeanDepthItem-fix-bad-translated-depth-units.patch
Type: application/octet-stream
Size: 1092 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150131/b979a71d/attachment.obj>


More information about the subsurface mailing list