Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.