Skip to content

Commit 7b71554

Browse files
authored
test: update go logfmt for 0x7f control char escaping fix
1 parent 517e800 commit 7b71554

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ if command -v pyenv >/dev/null 2>&1; then
33
elif command -v nix >/dev/null 2>&1; then
44
use flake
55
layout python python3.13
6+
watch_file external/**
67
fi

external/golang-logfmt-echo/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ buildGoModule {
77
pname = "golang-logfmt-echo";
88
version = "0.0.0";
99
src = ./.;
10-
vendorHash = "sha256-Yr+8wpleQTFxCYCCihhU5cyIuo11/66MaGgin2P924I=";
10+
vendorHash = "sha256-qXw5xRuTGcy9JVIMQLdadAc/V09h/HJxYrVfskA/YzQ=";
1111
}

external/golang-logfmt-echo/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module golang-logfmt-echo
22

33
go 1.23
44

5-
require github.com/go-logfmt/logfmt v0.6.0
5+
require github.com/go-logfmt/logfmt v0.6.1

external/golang-logfmt-echo/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4=
2-
github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
1+
github.com/go-logfmt/logfmt v0.6.1 h1:4hvbpePJKnIzH1B+8OR/JPbTx37NktoI9LE2QZBBkvE=
2+
github.com/go-logfmt/logfmt v0.6.1/go.mod h1:EV2pOAQoZaT1ZXZbqDl5hrymndi4SY9ED9/z6CO0XAk=

tests/test_formatter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
("\t", '"\\t"'),
2727
# All other control chars must be escaped and quoted
2828
("\x07", r'"\u0007"'),
29+
("\x7f", r'"\u007f"'),
2930
(
3031
"".join(chr(c) for c in range(0x20) if chr(c) not in "\t\n\r"),
3132
r'"\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u000b\u000c\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f"',

0 commit comments

Comments
 (0)