Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-347

tabs in a properties configuration files are not recognized as white space

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: Configurator
    • Labels:
      None
    • Environment:
      any

      Description

      tabs in a properties configuration file are considered as significant in the same way as letters and digits, instead of being skipped as white space.

      This is because the source code of the parser mistakingly thinks that the ascii code for tab is 0x08, while it actually is 0x09.

      Fix: in file properties.cpp, in function void PropertyParser::parse(LogString& in, Properties& properties) (which starts at line 30),

      change all occurrences of 0x08 to 0x09.

      There are 7 such occurrences, on lines 50, 79, 109, 138, 167, 212, 245.

        Attachments

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              jdmuys Jean-Denis Muys

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Issue deployment