many failed uploads caused by non-UTF chars in window title

Bug #229464 reported by Alex L. Demidov
2
Affects Status Importance Assigned to Milestone
RescueTime Linux Uploader
Incomplete
Undecided
Unassigned

Bug Description

I've tried running rescuetime_linux_uploader but there is many failed uploads.
Running xmllint on failed files results in following output:

 failed/99.upload.encoded.data:355: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xF3 0xD0 0xC9 0xD3
  <attribute name="window_title" type="string">Список собеседников</attribute>
                                               ^
I've hacked uploader.py to add proper xml header with my local charset (<?xml version="1.0" encoding="KOI8-R"?>)
and it is uploading files fine now.

Revision history for this message
Elliot Murphy (statik) wrote :

Interesting, I guess it would be good to grab the local charset.

Revision history for this message
Elliot Murphy (statik) wrote :

Can you tell me the output of `locale` command on your system? Thanks!

Changed in rescuetime-linux-uploader:
assignee: nobody → statik
status: New → Confirmed
Revision history for this message
Alex L. Demidov (alexeydemidov) wrote :

There is output from `locale` on my system (FreeBSD 6.3):

LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_ALL=

Revision history for this message
Elliot Murphy (statik) wrote :

One of the things Angus changed was from XML to YAML. I wonder whether you still se this problem? I definitely see in the code how it is trying to encode window titles as UTF8. If you still see this problem with the current trunk version, can you let me know? I'd like to fix this, but I'm not sure if is still a problem.

Changed in rescuetime-linux-uploader:
status: Confirmed → Incomplete
Elliot Murphy (statik)
Changed in rescuetime-linux-uploader:
assignee: Elliot Murphy (statik) → nobody
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.