You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am in a french locale (LANG=fr_FR.UTF-8)
with journalctl I get for example:
nov. 29 20:23:37 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
nov. 29 20:23:41 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
nov. 29 20:23:41 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
nov. 29 20:23:46 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
nov. 29 20:23:46 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
nov. 29 20:23:48 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
nov. 29 20:23:48 uqbar rtkit-daemon[2654]: Supersvising 0 threads of 0 processes of 0 users.
nov. 29 20:23:50 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
nov. 29 20:23:50 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
running lnav on this file recognises it as plain text.
Now running LANG=C journalctl instead yields:
Nov 29 20:23:37 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
Nov 29 20:23:37 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
Nov 29 20:23:41 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
Nov 29 20:23:41 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
Nov 29 20:23:46 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
Nov 29 20:23:46 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
Nov 29 20:23:48 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
Nov 29 20:23:48 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
Nov 29 20:23:50 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
Nov 29 20:23:50 uqbar rtkit-daemon[2654]: Supervising 0 threads of 0 processes of 0 users.
and lnav recognizes this as syslog_log
To Reproduce
put the above snippets in files and run lnav on them.
Additional notes
this was already reported in #533 which you kindly fixed in 26cccda
would you mind adding a regression test for this?
The text was updated successfully, but these errors were encountered:
Current code first attempts to detect english abbreviations for %b and
only if the string does not start with one of the months, tries
the locale specific names.
This is incorrect for some locales.
For example in fr_FR %b for november is `nov`. Parsing `nov. 29` as `%b
%d` would fail because we wrongly assume that the month is just `nov`
and not `nov.`. Then we attempt to parse `. 29` as ` %d`.
The correct solution would be to try english and if later the string
does not match to backtrack, but this does not match the existing flow
of the code.
Instead this restricts the fast path to matching full words to the
english locale, no only prefixes.
Fixes: tstack#1086
Current code first attempts to detect english abbreviations for %b and
only if the string does not start with one of the months, tries
the locale specific names.
This is incorrect for some locales.
For example in fr_FR %b for november is `nov.`. Parsing `nov. 29` as `%b
%d` would fail because we wrongly assume that the month is just `nov`
and not `nov.`. Then we attempt to parse `. 29` as ` %d`.
The correct solution would be to try english and if later the string
does not match to backtrack, but this does not match the existing flow
of the code.
Instead this restricts the fast path to matching full words to the
english locale, no only prefixes.
Fixes: tstack#1086
lnav version
current master 9034bc2
Describe the bug
I am in a french locale (
LANG=fr_FR.UTF-8
)with journalctl I get for example:
running lnav on this file recognises it as plain text.
Now running
LANG=C journalctl instead
yields:and lnav recognizes this as syslog_log
To Reproduce
put the above snippets in files and run lnav on them.
Additional notes
this was already reported in #533 which you kindly fixed in 26cccda
would you mind adding a regression test for this?
The text was updated successfully, but these errors were encountered: