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

Crash in wezterm.strftime #6361

Open
junkblocker opened this issue Nov 5, 2024 · 0 comments
Open

Crash in wezterm.strftime #6361

junkblocker opened this issue Nov 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@junkblocker
Copy link
Contributor

junkblocker commented Nov 5, 2024

What Operating System(s) are you seeing this problem on?

Linux Wayland

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

wezterm 20241031-235112-0983ae90

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

Trying to coax TZ abbreviation out of strftime instead of offset, I try %Z and %EZ

Sane format does not crash

    local date = wezterm.strftime "%a %b %-d %H:%M%P %Z"

but does not give me abbreviation.

Alternate format crashes wezterm

    local date = wezterm.strftime "%a %b %-d %H:%M%P %EZ"

UNIX (Fedora 41) date works and gives me TZ abbreviation

% date "+%Z"
PST

% date "+%EZ"
PST

To Reproduce

See description above.

Configuration

no config

Expected Behavior

Wezterm should not crash

Logs

From Konsole

% wezterm
06:04:40.064  INFO   logging > lua: window config reloaded
06:04:41.916  INFO   logging > lua: window config reloaded
06:04:42.064  ERROR  env_bootstrap > panic at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/string.rs:2566:14 - !?
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: __libc_start_call_main
  27: __libc_start_main@GLIBC_2.2.5
  28: <unknown>

thread 'main' panicked at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/string.rs:2566:14:
a Display implementation returned an error unexpectedly: Error
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
panicked at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/local.rs:260:26:

thread panicked while processing panic. aborting.
[1]    161576 IOT instruction (core dumped)  wezterm

Anything else?

No response

@junkblocker junkblocker added the bug Something isn't working label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant