forked from bazel-contrib/bazel-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a sed script to vis-encode non-ASCII bytes for mtree
Bazel's Starlark does not provide access to a string's bytes, only its codepoints, so we are unable to do this escaping in Starlark. So a second pass is needed, at least until the spec and implementation work to get a [`bytes` type](bazelbuild/starlark#112) lands. Fixes bazel-contrib#794
- Loading branch information
Showing
5 changed files
with
172 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
# Code generated by gen_vis_scripts. DO NOT EDIT. | ||
# Replace non-ASCII bytes with their octal escape sequences. | ||
# Escaping of ASCII is done in Starlark prior to writing content out. | ||
|
||
s/\x80/\\200/g | ||
s/\x81/\\201/g | ||
s/\x82/\\202/g | ||
s/\x83/\\203/g | ||
s/\x84/\\204/g | ||
s/\x85/\\205/g | ||
s/\x86/\\206/g | ||
s/\x87/\\207/g | ||
s/\x88/\\210/g | ||
s/\x89/\\211/g | ||
s/\x8a/\\212/g | ||
s/\x8b/\\213/g | ||
s/\x8c/\\214/g | ||
s/\x8d/\\215/g | ||
s/\x8e/\\216/g | ||
s/\x8f/\\217/g | ||
s/\x90/\\220/g | ||
s/\x91/\\221/g | ||
s/\x92/\\222/g | ||
s/\x93/\\223/g | ||
s/\x94/\\224/g | ||
s/\x95/\\225/g | ||
s/\x96/\\226/g | ||
s/\x97/\\227/g | ||
s/\x98/\\230/g | ||
s/\x99/\\231/g | ||
s/\x9a/\\232/g | ||
s/\x9b/\\233/g | ||
s/\x9c/\\234/g | ||
s/\x9d/\\235/g | ||
s/\x9e/\\236/g | ||
s/\x9f/\\237/g | ||
s/\xa0/\\240/g | ||
s/\xa1/\\241/g | ||
s/\xa2/\\242/g | ||
s/\xa3/\\243/g | ||
s/\xa4/\\244/g | ||
s/\xa5/\\245/g | ||
s/\xa6/\\246/g | ||
s/\xa7/\\247/g | ||
s/\xa8/\\250/g | ||
s/\xa9/\\251/g | ||
s/\xaa/\\252/g | ||
s/\xab/\\253/g | ||
s/\xac/\\254/g | ||
s/\xad/\\255/g | ||
s/\xae/\\256/g | ||
s/\xaf/\\257/g | ||
s/\xb0/\\260/g | ||
s/\xb1/\\261/g | ||
s/\xb2/\\262/g | ||
s/\xb3/\\263/g | ||
s/\xb4/\\264/g | ||
s/\xb5/\\265/g | ||
s/\xb6/\\266/g | ||
s/\xb7/\\267/g | ||
s/\xb8/\\270/g | ||
s/\xb9/\\271/g | ||
s/\xba/\\272/g | ||
s/\xbb/\\273/g | ||
s/\xbc/\\274/g | ||
s/\xbd/\\275/g | ||
s/\xbe/\\276/g | ||
s/\xbf/\\277/g | ||
s/\xc0/\\300/g | ||
s/\xc1/\\301/g | ||
s/\xc2/\\302/g | ||
s/\xc3/\\303/g | ||
s/\xc4/\\304/g | ||
s/\xc5/\\305/g | ||
s/\xc6/\\306/g | ||
s/\xc7/\\307/g | ||
s/\xc8/\\310/g | ||
s/\xc9/\\311/g | ||
s/\xca/\\312/g | ||
s/\xcb/\\313/g | ||
s/\xcc/\\314/g | ||
s/\xcd/\\315/g | ||
s/\xce/\\316/g | ||
s/\xcf/\\317/g | ||
s/\xd0/\\320/g | ||
s/\xd1/\\321/g | ||
s/\xd2/\\322/g | ||
s/\xd3/\\323/g | ||
s/\xd4/\\324/g | ||
s/\xd5/\\325/g | ||
s/\xd6/\\326/g | ||
s/\xd7/\\327/g | ||
s/\xd8/\\330/g | ||
s/\xd9/\\331/g | ||
s/\xda/\\332/g | ||
s/\xdb/\\333/g | ||
s/\xdc/\\334/g | ||
s/\xdd/\\335/g | ||
s/\xde/\\336/g | ||
s/\xdf/\\337/g | ||
s/\xe0/\\340/g | ||
s/\xe1/\\341/g | ||
s/\xe2/\\342/g | ||
s/\xe3/\\343/g | ||
s/\xe4/\\344/g | ||
s/\xe5/\\345/g | ||
s/\xe6/\\346/g | ||
s/\xe7/\\347/g | ||
s/\xe8/\\350/g | ||
s/\xe9/\\351/g | ||
s/\xea/\\352/g | ||
s/\xeb/\\353/g | ||
s/\xec/\\354/g | ||
s/\xed/\\355/g | ||
s/\xee/\\356/g | ||
s/\xef/\\357/g | ||
s/\xf0/\\360/g | ||
s/\xf1/\\361/g | ||
s/\xf2/\\362/g | ||
s/\xf3/\\363/g | ||
s/\xf4/\\364/g | ||
s/\xf5/\\365/g | ||
s/\xf6/\\366/g | ||
s/\xf7/\\367/g | ||
s/\xf8/\\370/g | ||
s/\xf9/\\371/g | ||
s/\xfa/\\372/g | ||
s/\xfb/\\373/g | ||
s/\xfc/\\374/g | ||
s/\xfd/\\375/g | ||
s/\xfe/\\376/g | ||
s/\xff/\\377/g |