waveterm/waveshell/pkg
Sylvie Crowe e1e5b67ff6
I18n fixes (#211)
* remove byte sanitization for user commands

When serializing jsonBytes in packet.go::MarshalPacket, a step existed
that attempted to manually sanitize the bytes before sending them. This
was initially done to avoid invalid characters in json; however, go
should handle this for us. But this sanitization broke
internationalization because it excluded characters required for unicode
in other languages. Because of that, it has been removed.

* properly decode non-ascii on frontend

The functions atob and btoa do not convert base 64 to strings in the
expected way. The base64ToArray function handles it properly but other
cases do not. These other cases have been replaced with a helper
function that makes use of the base64-js package. This package has
already been included as a dependency of another package we use, but it
was added to the package.json file to make the inclusion explicit.

* automatically set/share LANG var with waveshell

Waveterm previously did not set the LANG environment variable which
caused problems for international users. On Linux, this is done
automatically, but it needs to be done manually on macos.

Even on linux, the wavesrv LANG variable is shared with waveshell to
ensure the same one is used on remotes.

* only set the lang var if not previously set

In order to prevent waveterm from overriding the lang var entirely, this
ensures that it is only manually determined if it hasn't previously been
set.

* use envMap instead of os to determine var

This is slightly more performant and relies more directly on our code
instead of external code.
2024-01-08 18:31:17 -08:00
..
base SIGKILL will also kill waveshell. clear PendingStateCmds and WaitingCmds on disconnect (remote.go) 2023-11-09 18:29:11 -08:00
binpack add license notice (#37) 2023-10-16 21:31:13 -07:00
cirfile Clean up cirfile and cirfile_tests, ensure we are using contexts with cancellation signals (#183) 2023-12-22 18:07:58 -08:00
cmdtail remove more go warnings 2023-12-05 10:49:30 -08:00
mpio add license notice (#37) 2023-10-16 21:31:13 -07:00
packet I18n fixes (#211) 2024-01-08 18:31:17 -08:00
server Packetparser Ignore Spurious Invalid Input at Beginning of Stream (#140) 2023-12-18 12:42:40 -08:00
shexec fix warnings in waveshell 2023-12-26 15:03:17 -08:00
simpleexpand add license notice (#37) 2023-10-16 21:31:13 -07:00
statediff fix warnings in waveshell 2023-12-26 15:03:17 -08:00