cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
You are here: Foswiki>Tasks Web>Item13474 (03 Jan 2016, JozefMojzis)Edit Attach

Item13474: CommentPlugin fails with Wide character print error for utf-8 comments.

pencil
Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component:
Branches: master
Reported By: JozefMojzis
Waiting For:
Last Change By: JozefMojzis

How to reproduce

  • go to http://trunk.foswiki.org/Sandbox/Jomo/CommentTest
  • try add some unicode comment, he result will be
    • the comment either accepted as latin1 ( for example for íéáéíáéíáíéáíé )
    • or e.g. for ľščžťýžáťčšľýľ will print a message:
Software error:

Wide character in print at /usr/home/trunk.foswiki.org/core/lib/Foswiki/Engine/CGI.pm line 287.
but the comment is added into the topic.

tested on T.F.O and on the beta2 tarbal = acts differently.

  • On my local installation (1.2beta2-tarbal) it adds the utf8 comment, only when trying to add a comment what can be accepted as latin1 it accepts it as latin1. (e.g. íéáéíáéíáíéáíé) and of course, it is scrambled on the output).
  • on the trunk - see above - it prints software error.

-- JozefMojzis - 24 Jun 2015

trying to add utf8 comment: žížala čačača šupák květ vůl

-- JozefMojzis - 24 Jun 2015

trying to add utf8 comment2: éíáéíáéíá

-- JozefMojzis - 24 Jun 2015

here works ok both

-- JozefMojzis - 24 Jun 2015

ľščžťýžáťčšľýľ

-- JozefMojzis - 24 Jun 2015

íáíáíáíáí

-- JozefMojzis - 24 Jun 2015

raising this to urgent = act differently on FO and TFO and my local beta2 tarbal install.

-- JozefMojzis - 24 Jun 2015
 

ItemTemplate edit

Summary CommentPlugin fails with Wide character print error for utf-8 comments.
ReportedBy JozefMojzis
Codebase 1.2.0 beta2, trunk
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:790f5ba7e825
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
trunkCheckins
masterCheckins distro:790f5ba7e825
ItemBranchCheckins
Release01x01Checkins
Topic revision: r6 - 03 Jan 2016, JozefMojzis - This page was cached on 21 Mar 2018 - 14:01.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License