GnuCash can't handle UTF-8 encoded OFX file because of libofx bug

Bug #629996 reported by Yasuaki Taniguchi
34
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GnuCash
Fix Released
Medium
LibOFX
Fix Released
Undecided
Unassigned
Ubuntu Japanese Kaizen Project
Fix Released
Medium
Unassigned
libofx (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Lucid by Yasuaki Taniguchi
Nominated for Maverick by Yasuaki Taniguchi

Bug Description

[expected behavior]
GnuCash can import UTF-8-encoded ofx file without garbled character.

[Actual behavior]
GnuCash failed to handle UTF-8-encoded OFX file like the attached file.

Related branches

Revision history for this message
Yasuaki Taniguchi (yasuakit) wrote :
Revision history for this message
Yasuaki Taniguchi (yasuakit) wrote :

This is a sample file which is failed to be imported by GnuCash

Revision history for this message
Yasuaki Taniguchi (yasuakit) wrote :

This is a patch for libofx to fix this problem.

Nobuto Murata (nobuto)
tags: added: patch
Changed in gnucash:
status: Unknown → New
Changed in gnucash:
importance: Unknown → Medium
status: New → Fix Released
Revision history for this message
Nobuto Murata (nobuto) wrote :
tags: added: patch-accepted-upstream
removed: patch
Changed in libofx (Ubuntu):
status: New → Confirmed
Revision history for this message
Nobuto Murata (nobuto) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting also affect Debian's package. It would be nice if somebody having it could send the bug to Debian by following the instructions at https://wiki.ubuntu.com/Debian/Bugs with the patch. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Nobuto Murata (nobuto)
Changed in ubuntu-jp-improvement:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Chris Halse Rogers (raof) wrote :

Thanks for your work on this bug. The sample file you attached was particularly useful to verify the fix!

The libofx package is in bit of a bad state - there doesn't seem to have been any activity in Debian for about three years, there are a couple of new upstream releases, and some patches sitting on the Debian BTS.

This shouldn't block your fix, however. I've wrapped it into a debdiff for easier sponsoring and verified that it works.

Changed in libofx (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Revision history for this message
Chris Halse Rogers (raof) wrote :

This should also be appropriate for an SRU; the package is unchanged since Karmic.

Jani Monoses (jani)
Changed in libofx:
importance: Unknown → Undecided
status: Unknown → New
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libofx - 1:0.9.0-3ubuntu3

---------------
libofx (1:0.9.0-3ubuntu3) natty; urgency=low

  * debian/applied-patches/libofx-utf8-rev1.patch:
    + Patch by Yasuaki Taniguchi to better handle UTF-8 in OFX files.
      (LP: #629996)
 -- Christopher James Halse Rogers <email address hidden> Mon, 28 Feb 2011 09:47:23 +1100

Changed in libofx (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Nobuto Murata (nobuto) wrote :

I will mark as Fix Released against Ubuntu Japanese Kaizen Project task.

Changed in ubuntu-jp-improvement:
status: Triaged → Fix Released
Revision history for this message
Benoit Grégoire (benoitg) wrote :

The patch that closed this bug causes a serious regression for latin-1 (non-utf-8) characters. Specifically, all string are truncated after the first non-ascii character.

While the original patch was accepted upstream months ago, it was changed hours later when the regression was found.

Proposed merge above re-fixes the bug without the regression.

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.