Zim

[Zim 0.4x] Error while storing web addresses with extended characters

Bug #510062 reported by Mark Alan
42
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Zim
Fix Released
Undecided
Unassigned

Bug Description

[while using zim_0.43_all.deb @ Ubuntu 9.10]

With Zim's Perl version it was possible to store and retrieve web addresses with extended characters.

With Zim 0.4x:
  - trying to paste such addresses in a page is impossible.
  - trying to retrieve a page imported from a previous version, will cause Zim to die with a screen error code of:
  ('utf8', '\xe2', 0, 1, 'unexpected end of data')

To replicate the bug:
1. close zim
2. create a file bug-test.txt and fill it with the contents bellow described between the #-- cut here -- markers.
3. save the file, start zim, try to open the newly created bug-test page.

#-- cut here --
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
Creation-Date: Unknown

====== flac ======

# test page: http://aidanjm.wordpress.com/2007/02/04/converting-monkey%E2%80%99s-audio-ape-files-to-flac-in-ubuntu/
#-- cut here --

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fixed in rev 195. Added test case for this.

Changed in zim:
status: New → Fix Committed
Changed in zim:
status: Fix Committed → Fix Released
Revision history for this message
fsando (fsando) wrote :

This issue has reemerged with the latest revisions.
With the test case from OP I get this error:

'utf8' codec can't decode byte 0xe2 in position 0: unexpected end of data

It does not exist in revision 304

Revision history for this message
fsando (fsando) wrote :

Disregard that report, after further investigation I am getting inconsistent results (sometimes i get the error sometimes I do not).

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.