From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.0.0.0/16 X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8B5CD1FAE2 for ; Mon, 29 Jan 2018 01:12:47 +0000 (UTC) Received: from localhost ([::1]:52626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efy06-0000VP-R4 for e@80x24.org; Sun, 28 Jan 2018 20:12:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efy04-0000V3-BR for dtas-all@nongnu.org; Sun, 28 Jan 2018 20:12:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efy03-0002pq-Ko for dtas-all@nongnu.org; Sun, 28 Jan 2018 20:12:44 -0500 Received: from dcvr.yhbt.net ([2600:3c01::f03c:91ff:fe96:f5d6]:43222) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1efy03-0002pW-FX for dtas-all@nongnu.org; Sun, 28 Jan 2018 20:12:43 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 41BE31FAE2 for ; Mon, 29 Jan 2018 01:12:42 +0000 (UTC) From: Eric Wong To: dtas-all@nongnu.org Subject: [PATCH] get rid of Windows-31J regexps Date: Mon, 29 Jan 2018 01:12:42 +0000 Message-Id: <20180129011242.27377-1-e@80x24.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fe96:f5d6 X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: duct tape audio suite List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+e=80x24.org@nongnu.org Sender: "dtas-all" Oops, a Perlism crept in :x --- bin/dtas-readahead | 2 +- lib/dtas/mlib.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dtas-readahead b/bin/dtas-readahead index 6a8edf7..913bf07 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -75,7 +75,7 @@ def seek_to_cur_pos(cur_pid, fp) end def children_of(ppid) - `ps h -o pid --ppid=#{ppid}`.split(/\s+/s).map(&:to_i) + `ps h -o pid --ppid=#{ppid}`.split(/\s+/).map(&:to_i) end def expand_pid(pid) diff --git a/lib/dtas/mlib.rb b/lib/dtas/mlib.rb index 0945153..24393d5 100644 --- a/lib/dtas/mlib.rb +++ b/lib/dtas/mlib.rb @@ -66,7 +66,7 @@ def initialize(db) end def init_suffixes - `sox --help 2>/dev/null` =~ /\nAUDIO FILE FORMATS:\s*([^\n]+)/s + `sox --help 2>/dev/null` =~ /\nAUDIO FILE FORMATS:\s*([^\n]+)/ re = $1.split(/\s+/).map! { |x| Regexp.quote(x) }.join('|') @suffixes = Regexp.new("\\.(?:#{re}|yml)\\z", Regexp::IGNORECASE) end -- EW