Cosmetic fix to allow conversion of --alcatel-name containing newlines
authorshort <>
Mon, 14 Jan 2002 11:02:46 +0000 (11:02 +0000)
committershort <>
Mon, 14 Jan 2002 11:02:46 +0000 (11:02 +0000)
GSM/SMS/NBS/Lib.pm

index 4fdc87a..675e4fb 100644 (file)
@@ -34,10 +34,10 @@ sub encode_payload {
        # assumed 7==dcs_to_bits($dcs)
 
        my $bits="";
-       $bits.=unpack("b7",$&) while ($payload=~s/^.//);
+       $bits.=unpack("b7",$&) while ($payload=~s/^.//s);
        $bits.="0"x7; # trailing padding
        my $r="";
-       $r.=pack("b8",$&) while ($bits=~s/^.{8}//);
+       $r.=pack("b8",$&) while ($bits=~s/^.{8}//s);
 
        return $r;
 }