msggen.pl.patch 747 B

1234567891011121314151617181920212223242526272829303132
  1. Use Getopt::Std in place of getopts.pl.
  2. https://bugs.gentoo.org/show_bug.cgi?id=420083
  3. --- a/msggen.pl
  4. +++ b/msggen.pl
  5. @@ -4,6 +4,7 @@
  6. # See the file COPYING for copying permission.
  7. use POSIX;
  8. +use Getopt::Std;
  9. # Package and version.
  10. $package = 'openjade';
  11. @@ -18,8 +19,7 @@
  12. undef $opt_l;
  13. undef $opt_p;
  14. undef $opt_t;
  15. -do 'getopts.pl';
  16. -&Getopts('l:p:t:');
  17. +getopts('l:p:t:');
  18. $module = $opt_l;
  19. $pot_file = $opt_p;
  20. @@ -72,7 +72,7 @@
  21. else {
  22. $field[0] =~ /^[IWQXE][0-9]$/ || &error("invalid first field");;
  23. $type[$num] = substr($field[0], 0, 1);
  24. - $argc = int(substr($field[0], 1, 1));
  25. + $argc = substr($field[0], 1, 1);
  26. }
  27. $nargs[$num] = $argc;
  28. $field[1] =~ /^[a-zA-Z_][a-zA-Z0-9_]+$/ || &error("invalid tag");