Skip to content

Problem with Date Format in ScpShell PathEntry #678

Description

@araneolus

Version

2.15.0

Bug description

WinScp will have Problem, if the sshd Server with the scpShell is start with German Local
Than the Files and Directory will be list with German "Umlaute" like this.

drw-rw-rw- 1 test group 0 März 4 11:56 test1

I have test it in my own ScpShell Class with the following DateTimeFormater and it works well than.

drw-rw-rw- 1 test group 0 Mar 4 11:56 test1

...
protected static class PathEntry implements Comparable {
public static final DateTimeFormatter FULL_TIME_VALUE_FORMATTER = DateTimeFormatter.ofPattern("MMM ppd HH:mm:ss yyyy",Locale.ENGLISH);
public static final DateTimeFormatter TIME_ONLY_VALUE_FORMATTER = DateTimeFormatter.ofPattern("MMM ppd HH:mm",Locale.ENGLISH);
public static final DateTimeFormatter YEAR_VALUE_FORMATTER = DateTimeFormatter.ofPattern("MMM ppd yyyy",Locale.ENGLISH);
...

Actual behavior

drw-rw-rw- 1 test group 0 März 4 11:56 test1

Expected behavior

drw-rw-rw- 1 test group 0 Mar 4 11:56 test1

Relevant log output

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions