Changeset 367fbf3 for perl/modules/Jabber/lib
- Timestamp:
- Jan 16, 2008, 9:54:55 PM (17 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- a8d5a39
- Parents:
- e0ffe77
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
re0ffe77 r367fbf3 296 296 my $cmd = shift; 297 297 my $jid = new Net::Jabber::JID; 298 $jid->SetJID( check_utf8(shift));298 $jid->SetJID(shift); 299 299 my $password = ''; 300 $password = check_utf8(shift)if @_;300 $password = shift if @_; 301 301 302 302 my $uid = $jid->GetUserID(); … … 479 479 } 480 480 else { 481 $to = check_utf8(shift @ARGV);481 $to = shift @ARGV; 482 482 } 483 483 … … 523 523 $cmd .= " -t $jwrite_thread" if $jwrite_thread; 524 524 $cmd .= " -s $jwrite_subject" if $jwrite_subject; 525 queue_admin_msg("$cmd - utf8: ".Encode::is_utf8($cmd));526 525 527 526 BarnOwl::start_edit_win( Encode::encode_utf8($cmd), \&process_owl_jwrite ); … … 1083 1082 ### Helper functions 1084 1083 1085 sub check_utf81086 {1087 my $str = shift;1088 Encode::_utf8_on($str);1089 Encode::_utf8_off($str) unless (Encode::is_utf8($str, 1));1090 return $str;1091 }1092 1093 1084 sub j2hash { 1094 1085 my $j = shift; … … 1225 1216 1226 1217 sub resolveConnectedJID { 1227 my $givenJIDStr = check_utf8(shift);1218 my $givenJIDStr = shift; 1228 1219 my $givenJID = new Net::Jabber::JID; 1229 1220 $givenJID->SetJID($givenJIDStr);
Note: See TracChangeset
for help on using the changeset viewer.