Cannot get Chinese string in the scope setting

Bug #1381010 reported by XiaoGuo, Liu
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unity-scopes-api (Ubuntu)
Invalid
Undecided
Unassigned
unity-scopes-shell (Ubuntu)
Fix Released
High
Pete Woods

Bug Description

I am trying to set some Chinese Strings in the scope. however, I cannot get it but the default one. If I input an English string there in the setting, I can always get it correctly.

My test code is at: bzr branch lp:~liu-xiao-guo/debiantrial/settingscope

Tags: univ-train

Related branches

description: updated
Revision history for this message
Michi Henning (michihenning) wrote :

I tried building your branch, and it appears to work. What exactly do you expect to happen and on which source line, and what does actually happen? Do you get an exception? A segfault? An empty string?

I'm sorry, but I need more detail to help.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

you need to input the Chinese characters like "北京“。it works for the English strings. I am now in the device sprint. I can find you here.

Revision history for this message
Michi Henning (michihenning) wrote :

Re-assigned to unity-scopes-shell. Problem is caused by the shell writing the .ini file without UTF-8 encoding.

Changed in unity-scopes-api (Ubuntu):
assignee: nobody → Michi Henning (michihenning)
status: New → In Progress
assignee: Michi Henning (michihenning) → nobody
status: In Progress → Invalid
Pete Woods (pete-woods)
Changed in unity-scopes-shell (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Pete Woods (pete-woods)
tags: added: univ-train
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-scopes-shell - 0.5.4+15.04.20141128-0ubuntu1

---------------
unity-scopes-shell (0.5.4+15.04.20141128-0ubuntu1) vivid; urgency=low

  [ Pete Woods ]
  * Write the scope settings using UTF-8 to match up with the scope
    regsitry (LP: #1381010)
  * Move QNetworkAccessManager onto correct thread
  * Fix crash exposed by today scope (LP: #1396526)

  [ Pawel Stolowski ]
  * Fix version check for unity api to match version required by
    src/Unity/CMakeLists.txt.
  * Read /custom/partner-id value (if present) and pass it with user-
    agent hint. (LP: #1389273)

  [ Albert Astals ]
  * Don't call Result::contains and then Result::value
 -- Ubuntu daily release <email address hidden> Fri, 28 Nov 2014 08:52:43 +0000

Changed in unity-scopes-shell (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

Can this fix be backported to Utopic platform?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.