logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46592] New: trim() on property file entries
Date Fri, 23 Jan 2009 13:28:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46592

           Summary: trim() on property file entries
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: peter@edu.uni-klu.ac.at


I just spent some time finding out, why i could not tell log4j to write log
files in UTF-8. I got the error "Error initializing output writer." and
"Unsupported encoding?" When debugging into it, i discovered, that it was a UTS
fault, as the line in the property file said "log4j.appender.ESP.Encoding=UTF-8
" (note the space at the end). Therefore I'd like to suggest to introduce some
string trimming in the method WriterAppend.createWriter(OutputStream). String
enc=getEncoding().trim(); or so.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message