]> Lady’s Gitweb - Gitweb/commit
gitweb: Use character or octal escape codes (and add span.cntrl) in esc_path
authorJakub Narebski <redacted>
Wed, 8 Nov 2006 10:50:07 +0000 (11:50 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commitceaa039c07bb2aa46dc3fbfd0c43d587d30ee96e0a1f69a2ee69dbfbab4702e5
tree904a065a79f7b58397777d5608a9448f95e36691eaa9438bad7f29646fe1ef5b
parent5d944b9d5c813f44ee25ce55ec7dc37caa62bab6caea5827f5296de1cc8902eb
gitweb: Use character or octal escape codes (and add span.cntrl) in esc_path

Instead of simply hiding control characters in esc_path by replacing
them with '?', use Character Escape Codes (CEC) i.e. alphabetic
backslash sequences like those found in C programming language and
many other languages influenced by it, such as Java and Perl.  If
control characted doesn't have corresponding character escape code,
use octal char sequence to escape it.

Alternatively, controls can be replaced with Unicode Control
Pictures U+2400 - U+243F (9216 - 9279), the Unicode characters
reserved for representing control characters when it is
necessary to print or display them.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.242817 seconds and 4 git commands to generate.