Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#306 closed defect (fixed)

BlogShow macro doesn't accept blog post with accents

Reported by: perus@… Owned by: pacopablo
Priority: normal Component: TracBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


Blog posts accept accented textes but BlogShow macros don't.

Attachments (0)

Change History (7)

comment:1 Changed 9 years ago by pacopablo

  • Status changed from new to assigned

Not sure exactly how to duplicate this. Are you referring to unicode characters that are not in the ASCII charset? or are you talking about HTML entities or something?

It's possible that this issue is with how trac handles macros. I believe that there is an additional layer of escaping done, which is probably why it works in blog, but not BlogShow.

Can you expand on how to best test this? Thanks.

comment:2 Changed 9 years ago by perus@…

I was just referring to 'french accented characters'. Hereafter my very first post with one example:

= Premier test =
J'ai installé aujourd'ui :
 * [ TragTags]
 * [ TracBlog]

comment:3 Changed 9 years ago by anonymous

Turns out this is a unicode error with trunk. There is a patch on #T3024 that will fix the error.

I have fired off an email to trac-dev to see if this is really something that I should be handling in the macro itself, but I suspect that it isn't.

comment:4 Changed 9 years ago by pacopablo

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [656]) * Now depends on Tags >= 0.3 and < 0.5

  • Wrapped macro output in unicode(x, 'utf-8'), Closes #306
  • Added patch from alect to support using the title in the URL, Closes #313
  • Added patch from coderanger adding a NoFloatFormatter so that the blog won't render macros that support it, like the TocMacro.

comment:5 Changed 9 years ago by pacopablo

This should be fixed now. Both in the lastet trunk of trac, but also in the blog plugin itself. If you still are experiencing issues, please reopen the ticket

comment:6 Changed 9 years ago by perus@…

Works properly with Trac [3128] and TracBlog [658] indeed. Thanks a lot.

(Didn't see TracTags version higher than 0.3? Neither 0.4 neither 0.5?)

comment:7 Changed 9 years ago by athomas

TagsPlugin 0.4 will be released very shortly and will be the stable version while we work on some API cleanup and changes for 0.5. The API changes will break plugins using the 0.3/0.4 API, hence the version dependency range in TracBlogPlugin

Add Comment

Modify Ticket

as closed The owner will remain pacopablo.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.