[slf4j-dev] [Bug 61] New: MessageFormatter does not escape backslash

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Thu Aug 23 17:08:24 CEST 2007


http://bugzilla.slf4j.org/show_bug.cgi?id=61

           Summary: MessageFormatter does not escape backslash
           Product: SLF4J
           Version: 1.1RC1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Core API
        AssignedTo: dev at slf4j.org
        ReportedBy: chrisahn at gmx.net


I can't put a backslash in front of my substituted argument.

Some tests:

System.out.println(MessageFormatter.format("C:{}", "foo"));
Prints "C:foo"

System.out.println(MessageFormatter.format("C:{}\\", "foo"));
Prints "C:foo\"

System.out.println(MessageFormatter.format("C:\\{}", "foo"));
Prints "C:{}"

System.out.println(MessageFormatter.format("C:\\\\{}", "foo"));
Prints "C:\{}"

There seems to be no way to print "C:\foo".


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the slf4j-dev mailing list