Hi Ming, someone with more knowledge about Unicode (and Windows) could perhaps explain why that happens, but since you also asked for a workaround:
Instead of using \bookOutSuffix, you could try with \bookOutputName, like this: \book { \bookOutputName "+中国曲子+" Which works fine over here (version 2.18, Mac OSX 10.8.4). / Fredrik On 18 March 2014 18:16, MING TSANG <tsan...@rogers.com> wrote: > > > > On Tuesday, March 18, 2014 12:58:13 PM, MING TSANG <tsan...@rogers.com> > wrote: > The attached .ly file generate two pdf files. > 1. test_utf-8_filename.pdf > 2. test_uft-8_filename-SA_TB.pdf > > I was anticipating that the 2nd pdf file name to be > "test_utf-8_filename-SA+TB.pdf" Instead it generates > "test_utf-8_filename-SA_TB.pdf". > > Is it that lilypond cannot generate utf-8 character in the file name? > Any work around? > Emmanuel, > Ming > > Additional info: > I change the bookOutSuffix to utf-8 character "男女" and I got the following > error: > Starting lilypond-windows.exe 2.19.3 [test_utf-8_filename.ly]... > Processing `C:/Users/Tsang/Dropbox/sample_lily-code/test_utf-8_filename.ly' > Parsing... > Interpreting music... > Preprocessing graphical objects... > Finding the ideal number of pages... > Fitting music on 1 page... > Drawing > systems...C:/Users/Tsang/Dropbox/LilyPond/usr/share/lilypond/current/scm/framework-ps.scm:450:22: > In procedure open-file in expression (open-file filename "wb"): > C:/Users/Tsang/Dropbox/LilyPond/usr/share/lilypond/current/scm/framework-ps.scm:450:22: > Invalid argument: "test_utf-8_filename-�__�_�.ps" > Exited with return code 1. > > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user