puts -nonewline [format {regsub: %-50s -> %-20s : } "$RX" "$RP"]
regsub: [[:space:]]+[[:xdigit:]]+[.] -> XXX. : OK
regsub: [\[]\d+:\d+[\]] -> DDD : KO
the problem seems to be the '\' who are in real '\\'.
my problem is *not* that '\\' is reduced to '\', my problem is that '%50s' does not really *recognize*
the '\\' and does *not* create final 50-char-string.
Hi,
I use a "format" to get table-like data
puts -nonewline [format {regsub: %-50s -> %-20s : } "$RX" "$RP"]
but get
regsub: [[:space:]]+[[:xdigit:]]+[.] ->
XXX. : OK
regsub: [\[]\d+:\d+[\]] ->
DDD : KO
the problem seems to be the '\' who are in real '\\'.
my problem is *not* that '\\' is reduced to '\', my problem is that
'%50s' does not really *recognize*
the '\\' and does *not* create final 50-char-string.
*OR*
the '\\' is handled proper by "format" *but* the terminal *eat* the
'\\'. this is a than a problem from 'puts' to encode
'\\' into real '\\'
my encoding is: de_DE.UTF-8
ao
Hi,
I use a "format" to get table-like data
puts -nonewline [format {regsub: %-50s -> %-20s : } "$RX" "$RP"]
but get
regsub: [[:space:]]+[[:xdigit:]]+[.] -> XXX. : OK
regsub: [\[]\d+:\d+[\]] -> DDD : KO
the problem seems to be the '\' who are in real '\\'.
my problem is *not* that '\\' is reduced to '\', my problem is that
'%50s' does not really *recognize* the '\\' and does *not* create
final 50-char-string.
*OR*
the '\\' is handled proper by "format" *but* the terminal *eat* the
'\\'. this is a than a problem from 'puts' to encode '\\' into real
'\\'
my encoding is: de_DE.UTF-8
Hi,
I use a "format" to get table-like data
puts -nonewline [format {regsub: %-50s -> %-20s : } "$RX" "$RP"]
but get
regsub: [[:space:]]+[[:xdigit:]]+[.] -> XXX. : OK
regsub: [\[]\d+:\d+[\]] -> DDD : KO
the problem seems to be the '\' who are in real '\\'.
my problem is *not* that '\\' is reduced to '\', my problem is that '%50s' does not really *recognize*
the '\\' and does *not* create final 50-char-string.
*OR*
the '\\' is handled proper by "format" *but* the terminal *eat* the '\\'. this is a than a problem from 'puts' to encode
'\\' into real '\\'
my encoding is: de_DE.UTF-8
ao
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 493 |
Nodes: | 16 (2 / 14) |
Uptime: | 20:09:02 |
Calls: | 9,719 |
Calls today: | 9 |
Files: | 13,741 |
Messages: | 6,182,080 |