Add modifier to %O that prints strings as %q would
After discussion in #2578 (closed) we decided that %O would not print 8+bit characters unescaped, but instead prescribe %q. However, %O would do well with a modifier to print 8+bit chars so that inspection of more complex datatypes would be easier. Overquoted example:
> mapping lunch_votes = ([ "Räkmacka" : 4, "Smörgåsbord" : 17 ]);
> write("%O\n", lunch_votes);
([ /* 2 elements */
"R\344kmacka": 4,
"Sm\366rg\345sbord": 17
])
Edited by Tobias S. Josefowitz