pbzip2-2 boost/std port: progress indicator doesn't display "%"

Bug #590972 reported by Yavor Nikolov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pbzip2
New
Undecided
Unassigned

Bug Description

Progress indicator doesn't display '%' character (just the number) when compiled on Solaris with Sun Studio 12.1.

Escaping % (i.e. "\%..." instead of "%...") seems to resolve the issue.

Revision history for this message
Yavor Nikolov (yavor-nikolov) wrote :

"\%..." is also not a good idea since is considered anachronism. It's better to use "%%..." instead which is in fact the format which has been used in 1.x.x.

description: updated
Revision history for this message
Yavor Nikolov (yavor-nikolov) wrote :

Since seems compilers sometimes behave differently on interpreting format specifiers and % - instead of escaping % maybe it would be better to just replace fprintf with std::fputs.
Formatting is not needed anyway in the particular case; fputs is simpler and behaves more consistently within the different compilers. I just tested that on Solaris and it works fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.