#53 unicode problem in html4css1.py

closed
None
5
2005-12-01
2005-11-10
Nik Klever
No

The types of the objects of the lists which have to be
joined in the two functions assemble_parts and astext
are sometimes of type str and sometimes of type unicode.

This is fatal if you have to use unicode all over the
time and encoding the html output into one charset
(f.g. utf-8)

I haven't the time to locate the source of this bug, so
I wrote this simple attached workaround including the
function ujoin(liste) called by the above functions
instead of ''.join(...)

If this bug is generally fixed, you can return simply
to the old form
ujoin(...) -> u''.join(...) in the calling functions
or add here the following line
return u''.join(liste)
prior to the first line in the ujoin function

Discussion

  • Nik Klever

    Nik Klever - 2005-11-10

    writers/html4css1.diff

     
  • Nik Klever

    Nik Klever - 2005-11-10
    • assigned_to: nobody --> goodger
    • summary: unicode problem in html4css --> unicode problem in html4css1.py
     
  • David Goodger

    David Goodger - 2005-11-10

    Logged In: YES
    user_id=7733

    Is this an actual, observed bug (i.e., one that you've seen
    during use), or a theoretical bug? If it's an actual bug,
    please attach a minimal offending input file and
    instructions (complete command line, settings, and the
    versions of Docutils, Python, and OS you are using).

    I'd like to see an actual example of the bug before
    attempting to fix it. Because as long as all the
    non-Unicode strings are 7-bit ASCII, which I believe they
    are, there shouldn't be a problem. These strings are all
    generated internally, and should be guaranteed not to
    contain non-ASCII characters.

     
  • Felix Wiemann

    Felix Wiemann - 2005-11-16
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks