Skip to content

Commit

Permalink
mpg123: handle filename encoding on printout for after playback
Browse files Browse the repository at this point in the history
git-svn-id: svn://scm.orgis.org/mpg123/trunk@5473 35dc7657-300d-0410-a2e5-dc2837fedb53
  • Loading branch information
thor committed Dec 30, 2024
1 parent 1ab3d2b commit ccc0825
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1.32.11
------
- mpg123: Fix printout of filenames at end (convert/limit text encoding).
- libout123:
-- modules/win32: Align waveOutGetDevCapsA to WAVEOUTCAPSA, in anticipation
of some UNICODE change.
Expand Down
4 changes: 3 additions & 1 deletion src/mpg123.c
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,9 @@ int main(int sys_argc, char ** sys_argv)
fprintf(stderr, "This was a Frankenstein track.\n");

position_info(mh, 0, ao, NULL, NULL, &secs, NULL, NULL, NULL);
fprintf(stderr,"[%d:%02d] Decoding of %s finished.\n", (int)(secs / 60), ((int)secs) % 60, filename);
fprintf(stderr,"[%d:%02d] Decoding of ", (int)(secs / 60), ((int)secs) % 60);
print_outstr(stderr, filename, 0, stderr_is_term);
fprintf(stderr," finished.\n");
}
else if(param.verbose) fprintf(stderr, "\n");

Expand Down

0 comments on commit ccc0825

Please sign in to comment.