Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2017-03-30
07:31 • Ticket [4768eb5c16] format-8.20 failure status still Closed with 5 other cha... artifact: 1b0ec849ac user: jan.nijtmans
2017-03-29
16:04 • Ticket [4768eb5c16]: 5 changes artifact: a6d7cbb08c user: dgp
15:29 • Ticket [4768eb5c16]: 5 changes artifact: 9e1d7076cf user: jan.nijtmans
15:00 • Ticket [4768eb5c16]: 5 changes artifact: 83f57b42a3 user: dgp
14:54 • Closed ticket [4768eb5c16]. artifact: eff33e03ae user: jan.nijtmans
14:53
Fix [4768eb5c166a1b923e3472d18d75fdccc1a47513|4768eb5c16]: format-8.20 failure. Since "%q" now is a ... check-in: a0d1b8ce65 user: jan.nijtmans tags: trunk
13:41 • Ticket [4768eb5c16] format-8.20 failure status still Open with 4 other chang... artifact: e623595afe user: dgp
13:40 • New ticket [4768eb5c16]. artifact: c066c73adc user: dgp

format-8.20 failure

Closed / Fixed4768eb5c166a1b923e3472d18d75fdccc1a47513Created 10 years agoUpdated 10 years ago
Descriptionplain2017-03-29 13:40:49
Starting with trunk checkin [316d711dac] I
see this test failure:

==== format-8.20 error conditions FAILED
==== Contents of test case:

    catch {format %q x} msg
    set msg

---- Result was:
format string ended in middle of field specifier
---- Result should have been (exact matching):
bad field specifier "q"
==== format-8.20 FAILED
Referenced by1
dgp Ticket [4768eb5c16]: 4 changes [History diff]2017-03-29 13:41:11
jan.nijtmansplain2017-03-29 14:54:58
Change test-case, since %q is no longer an invalid specifier.
dgpplain2017-03-29 15:00:36
What?!  [format %q] became meaningful?

When? Why? It is not in the documentation.
jan.nijtmanswiki2017-03-29 15:29:04

Well the "q" specifier, is meant to be undocumented, just as I don't really want to document the (microsoft-specific) "I", "I64" and "I32". But for completeness, "q" should be there as well.

Reference (BSD-specific): https://en.wikipedia.org/wiki/Printf_format_string

dgpplain2017-03-29 16:04:35
That leaves me more confused.

I assumed it was some simple addition
coming in without examination since it
seemed too obvious to examine.

Instead it's some platform-dependent
thing that we're so ashamed of we seek
to omit it from documentation?

Seems like a bad thing to me. I'm open
to be convinced otherwise.
jan.nijtmansplain2017-03-30 07:31:05
Yes, I think TCL_LL_MODIFIER (and a new TCL_Z_MODIFIER) should be documented, which currently isn't. TIP in preparation, experimentation ongoing in "z_modifier" branch. Reading ticket[1cc44617e2b4ed0a29f75762d45fe46388260f74|1cc44617e2] might help if you want to know what I'm after, currently the use of TCL_LL_MODIFIER is quite a mess....
Log in (anonymous is fine) to add a comment.