Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature wish: support printf "%8.8s" #8036

Closed
vicuna opened this Issue Feb 28, 2003 · 5 comments

Comments

Projects
None yet
4 participants
@vicuna
Copy link
Collaborator

vicuna commented Feb 28, 2003

Original bug ID: 1565
Reporter: administrator
Status: confirmed (set by @mshinwell on 2016-12-07T16:28:40Z)
Resolution: open
Priority: normal
Severity: feature
Category: standard library
Has duplicate: #8037

Bug description

Full_Name: Eric Cooper
Version: 3.06
OS: linux
Submission from: 12-227-100-158.client.attbi.com (12.227.100.158)

Please consider supporting the "precision" field in the %s printf conversion.
In C, this limits the printed string to that many characters. For example,
printf "%8.8s" string

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Feb 28, 2003

Comment author: administrator

cf. #8037

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Dec 7, 2016

Comment author: @mshinwell

This still appears not to be supported.

@Kakadu

This comment has been minimized.

Copy link

Kakadu commented Mar 17, 2019

seems to be a good candidate for junior_job tag

@gasche

This comment has been minimized.

Copy link
Member

gasche commented Mar 18, 2019

Yes and no... this interacts with the format GADTs in non-trivial ways, so it might be a good entry point for expert OCaml programmers but I wouldn't send a medium-level OCaml user this way.

@vicuna vicuna added the feature-wish label Mar 19, 2019

@yallop

This comment has been minimized.

Copy link
Member

yallop commented Apr 8, 2019

Closing as a duplicate of #6942. (Actually, this report is much older, but #6942 has more discussion, so I'm closing this one.)

@yallop yallop closed this Apr 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.