WMC(1) | Wine Developers Manual | WMC(1) |
wmc - Wine Message Compiler
wmc [options] [inputfile]
wmc compiles messages from inputfile into FormatMessage[AW] compatible format encapsulated in a resourcescript format. wmc outputs the data either in a standard .bin formatted binary file, or can generated inline resource data.
wmc takes only one inputfile as argument (see BUGS). The inputfile normally has extension .mc. The messages are read from standard input if no inputfile is given. If the outputfile is not specified with -o, then wmc will write the output to inputfile.{rc,h}. The outputfile is named wmc.tab.{rc,h} if no inputfile was given.
The original syntax is extended to support codepages more smoothly. Normally, codepages are based on the DOS codepage from the language setting. The original syntax only allows the destination codepage to be set. However, this is not enough for non-DOS systems which do not use unicode source-files.
A new keyword Codepages is introduced to set both input and output codepages to anything one wants for each language. The syntax is similar to the other constructs:
Codepages '=' '(' language '=' cpin ':' cpout ... ')'
The language is the numerical language-ID or the alias set with LanguageNames. The input codepage cpin and output codepage cpout are the numerical codepage IDs. There can be multiple mappings within the definition and the definition may occur more than once.
wmc was written by Bertho A. Stultiens.
The message compiler should be able to have multiple input files and combine them into one output file. This would enable the splitting of languages into separate files.
Decimal output is completely lacking. Don't know whether it should be implemented because it is a, well, non-informative format change. It is recognized on the commandline for some form of compatibility.
Bugs can be reported on the Wine bug tracker.
wmc is part of the Wine distribution, which is available through WineHQ, the Wine development headquarters.
October 2005 | Wine 8.0 |