Changeset f4c18a9 in git


Ignore:
Timestamp:
18/01/14 22:47:39 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
d3cc33f
Parents:
8770ec6
Message:

lib/checkshortcut.pl: Fix shortcut checking to allow for non-ASCII
shortcuts.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r8770ec6 rf4c18a9  
     1Sat Jan 18 22:47:20 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * lib/checkshortcut.pl: Fix shortcut checking to allow for non-ASCII
     4          shortcuts.
     5
    16Sat Jan 18 22:45:50 GMT 2014  Olly Betts <olly@survex.com>
    27
  • lib/checkshortcut.pl

    r8770ec6 rf4c18a9  
    3232        my $bad = 0;
    3333        for (@{$menu{$menu}}) {
    34             my ($acc) = ($msg[$_] =~ /\&(.)/);
     34            my ($acc) = ($msg[$_] =~ /\&([\x00-\x7f]|[\xc2-\xdf].|[\xe0-\xef]..|[\xf0-\xf4]...)/);
    3535            if (!defined $acc) {
    3636                print "Lang $lang : message $_ '$msg[$_]' has no shortcut\n";
Note: See TracChangeset for help on using the changeset viewer.