charset: common endpoint fallback
[sheet.git] / charset.plp
index 7f19bc183e6fb02abd1d91622041cf7f75479905..5b415eec8387bb6cf6b76e81f7ae3c52d9093f5e 100644 (file)
@@ -147,11 +147,11 @@ sub tabinput {
                eval { $charset->{setup}->(\%row) }
                        or Alert("Incomplete setup of $input", $@);
        }
+       $row{endpoint} ||= 0xFF;
 
        if ($row{set}) {}
        elsif ($row{set} = Encode::resolve_alias($input)) {
                $row{offset} = delete $row{startpoint};
-               $row{endpoint} ||= 0xFF;
                if ($row{set} eq 'MacHebrew' or $row{set} eq 'MacThai') {
                        # array of possibly multiple characters per code point
                        $row{table} = [