Unable to diff non UTF-8 files with special characters

Bug #273957 reported by Alexandre Garnier
2
Affects Status Importance Assigned to Milestone
Bazaar Plugin for Eclipse
Fix Released
Medium
Guillermo Gonzalez
Java library for Bazaar
Fix Released
Medium
Guillermo Gonzalez
bzr-xmloutput
Fix Released
Medium
Guillermo Gonzalez

Bug Description

When diffing 2 revisions of a file, I have this errors in bazaar console and a dialog box "No differences" :

Executing: cat "--revision=revno:9057" src\Test.java

    Error while executing cat
    The response could not be parsed.
    The response could not be parsed.
    A problem occured during parsing
    Invalid byte 2 of 3-byte UTF-8 sequence.------
Executing: cat "--revision=revno:15501" src\Test.java

    Error while executing cat
    The response could not be parsed.
    The response could not be parsed.
    A problem occured during parsing
    Invalid byte 2 of 3-byte UTF-8 sequence.

This file is not UTF-8 encoded (but ISO-8859-1) and contains accented letters.

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Alexandre,
Thanks for reporting this.
I can confirm the problem.
It seems that xmlrpc service sset the encoding to UTF-8 but sends the contents of the file as ISO-8859-1
I'll fix this in the client, while looking for a robust solution on the server.

Cheers,

Changed in bzr-eclipse:
importance: Undecided → Medium
status: New → Confirmed
Changed in bzr-java-lib:
importance: Undecided → Medium
status: New → Confirmed
Changed in bzr-xmloutput:
importance: Undecided → Medium
status: New → Confirmed
Changed in bzr-eclipse:
assignee: nobody → guillo.gonzo
status: Confirmed → In Progress
Changed in bzr-java-lib:
assignee: nobody → guillo.gonzo
status: Confirmed → In Progress
Changed in bzr-xmloutput:
assignee: nobody → guillo.gonzo
status: Confirmed → In Progress
Changed in bzr-eclipse:
status: In Progress → Fix Committed
Changed in bzr-java-lib:
status: In Progress → Fix Committed
Changed in bzr-xmloutput:
status: In Progress → Fix Committed
Changed in bzr-eclipse:
status: Fix Committed → Fix Released
Changed in bzr-xmloutput:
status: Fix Committed → Fix Released
Revision history for this message
Alexandre Garnier (zigarn) wrote :

It works for me.

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Great!
Thanks for checking.

Changed in bzr-java-lib:
status: Fix Committed → 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.