Skip to content

Commit

Permalink
training/unicharset_extractor.cpp: Print whether WCTYPE is included
Browse files Browse the repository at this point in the history
Character properties are autogenerated only if wctype is found on the
system.  However, it is not possible to know if a version of
unicharset_extractor was compiled with this support (especially if it
was installed as a pre-compiled binary).

This commit adds a print to the usage details to output if the binary
was compiled with wctype support.
  • Loading branch information
johnteslade committed Oct 5, 2015
1 parent 2517ffe commit 379da1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions training/unicharset_extractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ int main(int argc, char** argv) {
// Print usage
if (argc <= 1) {
printf("Usage: %s [-D DIRECTORY] FILE...\n", argv[0]);
#ifdef USING_WCTYPE
printf("Character properties using wctype is enabled\n");
#else
printf("WARNING: Character properties using wctype is DISABLED\n");
#endif
exit(1);

}
Expand Down

0 comments on commit 379da1f

Please sign in to comment.