Previous: , Up: Parser C-Language Interface   [Contents][Index]

4.6 Parser Internationalization

A Bison-generated parser can print diagnostics, including error and tracing messages. By default, they appear in English. However, Bison also supports outputting diagnostics in the user’s native language. To make this work, the user should set the usual environment variables. See The User’s View in GNU gettext utilities. For example, the shell command ‘export LC_ALL=fr_CA.UTF-8’ might set the user’s locale to French Canadian using the UTF-8 encoding. The exact set of available locales depends on the user’s installation.