Skip to content

PropertyFileConfiguration: input != output #398

@pqvst

Description

@pqvst

When I load a PropertyFileConfiguration the parser expects escaped values in the file (e.g. \ instead of ). However, when saving a PropertyFileConfiguration these values do not get escaped, which means that loading fails the next time I try to load the file.

foo.txt before:

test: a\\b

Code:

AutoPtr<PropertyFileConfiguration> test = new PropertyFileConfiguration("foo.txt");
test->save("foo.txt");

foo.txt after:

test: a\b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions