Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH commands assume english locale #2

Open
franfran3 opened this issue Jan 16, 2020 · 2 comments
Open

SSH commands assume english locale #2

franfran3 opened this issue Jan 16, 2020 · 2 comments
Assignees

Comments

@franfran3
Copy link

I have a server with fr_FR default locale.
Fetching file metadata from it fails with message ""Call to a member function getTimestamp() on string" at vendor/phuxtil/flysystem-ssh-shell/src/FileInfo/Stat/StatToSplFileInfo.php:24
The fact is that allmost all metadata are empty strings.
Going further in the code the output of Phuxtil\Flysystem\SshShell\Process\ProcessReader::stat() is populated:

Fichier : « /var/www/maintenance.yml »
   Taille : 550         Blocs : 8          ES blocs : 4096   fichier
Device : fe03h/65027d   Inode : 10745883    Liens : 1
Accès : (0644/-rw-r--r--)  UID : ( 1002/  www-data)   GID : ( 1002/  www-data)
Accès : 2020-01-16 14:43:29.966039892 +0100
Modi. : 2020-01-10 16:35:48.000000000 +0100
Chgt  : 2020-01-16 14:43:29.966039892 +0100
Créé  : -

But OutputProcessors expect labels to be in english.
An ugly patch is to set prefix to 'LC_ALL=C' as default prefix parameter value of methods from AdapterReader

@oliwierptak
Copy link
Owner

Hello, thank you for the message.

I will add fix for the locale use case.

@oliwierptak
Copy link
Owner

The issue has been fixed in v3.0.1.

Thank you for the report.

@oliwierptak oliwierptak self-assigned this Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants