Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding issue of movie names on Ubuntu/Linux #82

Closed
scakemyer opened this issue Feb 5, 2016 · 14 comments
Closed

Encoding issue of movie names on Ubuntu/Linux #82

scakemyer opened this issue Feb 5, 2016 · 14 comments
Labels
Milestone

Comments

@scakemyer
Copy link
Owner

As reported by nkgx on the forum, and I'm also seeing this in a VM:

@i96751414 anything in the translation system regarding encoding you think might be causing this?

@scakemyer scakemyer added the bug label Feb 5, 2016
@i96751414
Copy link

Unfortunately Python is the worst thing regarding this... Can you give me more details? Like language, which section is that, so I can reproduce the same here

@scakemyer
Copy link
Owner Author

English, movies only, shows seem fine. No idea if it's from the daemon, in or because of translations on the Python side, or in the json between both. My first guess is with GetLocalizedString() doing .encode('utf-8') on all labels.

@assapir
Copy link

assapir commented Feb 7, 2016

duplicate of ‫#23 ?

@scakemyer
Copy link
Owner Author

Yes it is, but I'll mark #23 as the duplicate since the problem isn't just with Hebrew

@assapir
Copy link

assapir commented Feb 15, 2016

Not already fixed?

@scakemyer
Copy link
Owner Author

Is it? Haven't tested yet with the new encoding fixes.

@assapir
Copy link

assapir commented Feb 16, 2016

I don't see this problem any more. (Although now I use the translated titles, so lets wait for others input).

@assapir
Copy link

assapir commented Feb 16, 2016

Ok, this problem is still presents. also for director name, elso not only on Ubuntu (I am using Arch linux ARM)

@scakemyer
Copy link
Owner Author

I tried debugging that for a while yesterday, the daemon is sending the right names and everything. Right up to feeding the list item's label and all, no matter what I tried, encoded as strings or unicode or ascii, Kodi chews them up in xbmcplugin.addDirectoryItems. I can't find a shred of logic to explain why it's doing that...

@tobiasvandriessel
Copy link

Very strange, on my Debian/Linux it's also present.

@infinicode
Copy link

Same problem here with Ubuntu 15.10 Wily. Lang is set in both Ubuntu and Kodi to en_US. I've setup the option "use_original_title" to "true", and still the same problem for movie names.

The daemon seems to working correctly, as the information exposed by the API seem to be correct too.

If I can help to debug just let me know.

img_20160217_201928

json

@infinicode
Copy link

The problem seems to be related with Kodi itself. I've upgraded Kodi to the unstable branch and everything works perfectly, both movies and tv shows.

Version of Kodi with the error: 2:15.2git20151101.0902-final-0wily
Version of Kodi without the error: 2:16.0
git20160205.0918-rc3-0wily

@scakemyer
Copy link
Owner Author

There's just no way this wasn't caused by Kodi, and I finally found the bug report: http://trac.kodi.tv/ticket/16414

@scakemyer
Copy link
Owner Author

I'm afraid the only fix is to upgrade to Jarvis, as it was included in beta-5. Finally closing this one, there's nothing more we can do since it's a memory corruption issue in XBMCAddon::Dictionary when using the new C++11 ABI in gcc 5.1 and up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants