[regression] UTF-8 in iPhone name displayed incorrectly

Bug #1049991 reported by Steve Magoun
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Libimobiledevice
Unknown
Medium
libimobiledevice (Ubuntu)
Fix Released
Low
Unassigned
Quantal
Fix Released
Low
Sebastien Bacher

Bug Description

Impact:
Some iphone devices are incorrectly named

Test Case:
1) Plug in an iPhone with a name that contains a right single quotation mark
2) View the contents of /run/user/$USER/gvfs

Expected results:
The name of the mount points created for the phone match the name of the iPhone. No extra characters are inserted in the name of the mount points.

Regression Potential:
Check the device name

---

When I plug my iPhone into my system running 12.10, it is automatically mounted in ~/.gvfs. The name of the mount point is incorrect - some characters in the name are replaced by whitespace. For example, my phone's name is "Steve's iPhone" The apostrophe is unicode 'right single quotation mark' (U+2019). It is not displayed in the name of the mount point.

This is a regression from 12.04, in which the right single quotation mark was displayed properly in the name of the mount point.

To reproduce:
1) Plug in an iPhone with a name that contains a right single quotation mark
2) View the contents of ~/.gvfs (e.g. `ll ~/.gvfs`)

Expected results:
The name of the mount points created for the phone match the name of the iPhone. No extra characters are inserted in the name of the mount points.

Actual results:
The name of the mount points created have extra spaces, and the quote mark is gone. For example:
steve@steve-laptop:~$ ll ~/.gvfs/
total 4
dr-x------ 4 steve steve 0 Sep 10 08:54 ./
drwxr-xr-x 73 steve steve 4096 Sep 12 10:07 ../
drwx------ 1 steve steve 0 Dec 31 1969 Documents on Steve s iPhone/
drwx------ 1 steve steve 544 Sep 9 10:57 Steve s iPhone/

(Note the extra spaces between my name and the 's' - these should not be there).

The strange naming, with extraneous spaces, is also seen in nautilus and other windows that display the name of the phone, which is ugly.

Right single quote is E2 80 99 in UTF-8 (3 bytes - hence the 3 extra spaces in place of the quote mark), so it looks like gvfs is no longer decoding UTF-8?

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: gvfs-backends 1.13.7-0ubuntu6
ProcVersionSignature: Ubuntu 3.5.0-14.15-generic 3.5.3
Uname: Linux 3.5.0-14-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.5.1-0ubuntu7
Architecture: amd64
Date: Wed Sep 12 14:02:40 2012
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gvfs
UpgradeStatus: Upgraded to quantal on 2012-08-07 (36 days ago)

Revision history for this message
Steve Magoun (smagoun) wrote :
Steve Magoun (smagoun)
description: updated
summary: - [regression] iPhone name displayed incorrectly
+ [regression] UTF-8 in iPhone name displayed incorrectly
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, I guess that's still an issue?

That seems similar to https://bugzilla.gnome.org/show_bug.cgi?id=676423 which is a libimobiledevice issue fixed in:
http://cgit.sukimashita.com/libimobiledevice.git/commit/?id=060e3f2683ed2b0b08e1a31deb9608a99e193b4a

We should try to backport that fix

affects: gvfs (Ubuntu) → libimobiledevice (Ubuntu)
Changed in libimobiledevice (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Changed in libimobiledevice (Ubuntu Quantal):
importance: Undecided → Low
status: New → Triaged
Changed in libimobiledevice (Ubuntu):
status: Confirmed → Triaged
Changed in libimobiledevice:
importance: Unknown → Medium
Changed in libimobiledevice (Ubuntu Quantal):
status: Triaged → In Progress
description: updated
Changed in libimobiledevice (Ubuntu Quantal):
assignee: nobody → Sebastien Bacher (seb128)
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Steve, or anyone else affected,

Accepted libimobiledevice into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/libimobiledevice/1.1.4-1ubuntu3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in libimobiledevice (Ubuntu Quantal):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Steve Magoun (smagoun) wrote :

Updating libimobiledevice3 to 1.1.4-1ubuntu3 fixed the bug for me - thanks!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libimobiledevice - 1.1.4-1ubuntu3

---------------
libimobiledevice (1.1.4-1ubuntu3) quantal-proposed; urgency=low

  * git_utf8_devices_names.patch:
    - fix incorrect naming of e.g iphone devices (lp: #1049991)
 -- Sebastien Bacher <email address hidden> Wed, 24 Oct 2012 12:01:08 +0200

Changed in libimobiledevice (Ubuntu Quantal):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libimobiledevice - 1.1.4-1ubuntu5

---------------
libimobiledevice (1.1.4-1ubuntu5) raring; urgency=low

  * 08_cython_0.16_fix.patch: Follow-up cython fix from Michael Bienia:
    - Mark BaseError as not inline in the .pxd file too, to match the
      definition from the .pyx file and fix the FTBFS with cython 0.17.
  * 09_use_python_config.patch: Use python-config to find the python
    include paths, and fix the build failure with multi-arched python.
 -- Adam Conrad <email address hidden> Sat, 19 Jan 2013 06:11:28 -0700

Changed in libimobiledevice (Ubuntu):
status: Triaged → Fix Released
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.