Bug #12577
Updated by nobu (Nobuyoshi Nakada) over 8 years ago
US-ASCII thinks '$' is punctuation. UTF-8 thinks it's not. This means that the following two scripts: ``` # encoding: us-ascii puts '$' =~ /\p{Punct}/ ? 'match' : 'no match' ``` and ``` # encoding: utf-8 puts '$' =~ /\p{Punct}/ ? 'match' : 'no match' ``` produce different results. It also means that the output from the single line script ``` puts '$' =~ /\p{Punct}/ ? 'match' : 'no match' ``` changed when we changed the default script encoding from US-ASCII to UTF-8. This may be okay as it is, but I'm reporting it here to check what others think.