You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2023/03/21 13:47:54 UTC

[Bug 66536] New: tagsfiles seem to be compiles with the wrong source encoding

https://bz.apache.org/bugzilla/show_bug.cgi?id=66536

            Bug ID: 66536
           Summary: tagsfiles seem to be compiles with the wrong source
                    encoding
           Product: Tomcat 9
           Version: 9.0.69
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: info.asf@klawitter.de
  Target Milestone: -----

Created attachment 38526
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38526&action=edit
minimal webapp

Hi there,

When I let tomcat/jasper compile the following tag file 
(WEB-INF/tags/umlaut.jsp):

<%@tag
  trimDirectiveWhitespaces="true"
  pageEncoding="UTF-8"
%>
<%= "ü does not work" %> // bytes c3 bc

compiles into umlaut_tag.java in which the umlaut is doubly utf-8 encoded
like this:

      out.print( "ü does not work" ); // bytes c3 83 c2 bc

String literals in jsp files work just fine, so I'd like to rule out
errors in my encoding setup.

(Tomcat is running with LC_ALL=de_DE.UTF-8.)

I've attached a minimal webapp demonstrating that jsp is working, but the tag
files are not.

Regards,
  Holger

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66536] tagsfiles seem to be compiled with the wrong source encoding

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66536

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. I can confirm that this is a Tomcat bug.

Fixed in:
- 11.0.x for 11.0.0-M5 onwards
- 10.1.x for 10.1.8 onwards
-  9.0.x for  9.0.74 onwards
-  8.5.x for  8.5.88 onwards

It you want a short-term work-around, add a single space character after <%@tag
and before the newline.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66536] tagsfiles seem to be compiles with the wrong source encoding

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66536

Holger Klawitter <in...@klawitter.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|9.0.69                      |9.0.73

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66536] tagsfiles seem to be compiled with the wrong source encoding

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66536

Holger Klawitter <in...@klawitter.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|tagsfiles seem to be        |tagsfiles seem to be
                   |compiles with the wrong     |compiled with the wrong
                   |source encoding             |source encoding

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org