tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 44724] New: CGIServlet: undesirable encoding conversion of CGI output
Date Tue, 01 Apr 2008 10:23:23 GMT

           Summary: CGIServlet: undesirable encoding conversion of CGI
           Product: Tomcat 6
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:Integration

Created an attachment (id=21750)
 --> (
CGI script which outputs Russian text in UTF-8

Tomcat CGIServlet which is distributed with Tomcat performs undesirable
conversion of CGI script output encoding.

This conversion is performed indirectly by the servlet (which passes data
through a memory stream) and depends on character encoding environment
variables (LANG/LC_ALL/...), at least on UNIX-like systems.

Steps to reproduce:

1. Install Tomcat 
2. Create a CGI script which outputs non-ascii7 data.
3. Set up Tomcat for running CGI scripts (a la
4. Set up any single-byte language environment  (for example, say 'export
LANG=C' in bash)
5. Start Tomcat instance in that single-byte language environment
6. Make a request to CGI script.

All non-ascii7 characters in the CGI output will be replaced with quotation

This behaviour is different from any other CGI implementation and is unexpected
by any "normal" user.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message