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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]