Modify

Opened 8 years ago

Closed 11 months ago

#6058 closed defect (worksforme)

[Patch] use to_unicode to avoid errors if svn files use different encoding

Reported by: anonymous Owned by: Ryan J Ollos
Priority: normal Component: IncludeSourcePartialPlugin
Severity: normal Keywords:
Cc: Massimo Trac Release: 0.11

Description

It's easy to commit a text file into svn and then import it with this plugin which breaks rendering the wiki page.

Attachments (1)

add_to_unicode.diff (1.5 KB) - added by anonymous 8 years ago.
add to_unicode

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by anonymous

Attachment: add_to_unicode.diff added

add to_unicode

comment:1 Changed 8 years ago by anonymous

Summary: use to_unicode to avoid errors if svn files are broken[Patch] use to_unicode to avoid errors if svn files are broken

comment:2 Changed 8 years ago by anonymous

Summary: [Patch] use to_unicode to avoid errors if svn files are broken[Patch] use to_unicode to avoid errors if svn files use different encoding

comment:3 Changed 11 months ago by Ryan J Ollos

Cc: Massimo added
Owner: changed from Chris Heller to Ryan J Ollos
Status: newaccepted

comment:4 Changed 11 months ago by Ryan J Ollos

Resolution: worksforme
Status: acceptedclosed

I can't reproduce with Trac 1.0-stable.

  1. Created a file with utf-8 encoded content:
    >>> with open('encoded', 'w') as f:
    ...     f.write(u"łÿö".encode('utf-8'))
    
    $file -I encoded 
    encoded: text/plain; charset=utf-8
    
  2. Added to SVN with svn:mime-type text/plain.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.