Changeset e0ffe77
- Timestamp:
- Jan 16, 2008, 8:18:25 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:
- 367fbf3
- Parents:
- b7b2a76
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
rb7b4565 re0ffe77 148 148 /* e->buffx=x; */ 149 149 /* e->buffy=y; */ 150 owl_editwin_adjust_for_locktext(e);150 _owl_editwin_set_xy_by_index(e, e->lock); 151 151 owl_editwin_redisplay(e, 0); 152 152 } … … 292 292 int len; 293 293 int dolocklen = e->lock - (ptr1 - e->buff); 294 295 for (i = 0; i < dolocklen; i++) { 296 waddch(e->curswin, buff[i]); 297 } 294 char *locktext; 295 char tmp = e->buff[dolocklen]; 296 297 e->buff[dolocklen] = '\0'; 298 locktext = owl_strdup(e->buff); 299 e->buff[dolocklen] = tmp; 300 301 waddstr(e->curswin, locktext); 302 298 303 len = strlen(buff); 299 304 for (i = 0; i < len-dolocklen; i++) { -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
r05f0061 re0ffe77 25 25 use Net::DNS; 26 26 use Getopt::Long; 27 28 use utf8; 27 29 28 30 our $VERSION = 0.1; … … 294 296 my $cmd = shift; 295 297 my $jid = new Net::Jabber::JID; 296 $jid->SetJID( shift);298 $jid->SetJID(check_utf8(shift)); 297 299 my $password = ''; 298 $password = shiftif @_;300 $password = check_utf8(shift) if @_; 299 301 300 302 my $uid = $jid->GetUserID(); … … 373 375 $vars{jlogin_havepass} = 1; 374 376 $conn->removeConnection($jidStr); 375 BarnOwl::start_password( 377 BarnOwl::start_password("Password for $jidStr: ", \&do_login ); 376 378 return ""; 377 379 } … … 477 479 } 478 480 else { 479 $to = shift @ARGV;481 $to = check_utf8(shift @ARGV); 480 482 } 481 483 … … 521 523 $cmd .= " -t $jwrite_thread" if $jwrite_thread; 522 524 $cmd .= " -s $jwrite_subject" if $jwrite_subject; 523 BarnOwl::start_edit_win( $cmd, \&process_owl_jwrite ); 525 queue_admin_msg("$cmd - utf8: ".Encode::is_utf8($cmd)); 526 527 BarnOwl::start_edit_win( Encode::encode_utf8($cmd), \&process_owl_jwrite ); 524 528 } 525 529 … … 1079 1083 ### Helper functions 1080 1084 1085 sub check_utf8 1086 { 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 1081 1093 sub j2hash { 1082 1094 my $j = shift; … … 1213 1225 1214 1226 sub resolveConnectedJID { 1215 my $givenJIDStr = shift;1227 my $givenJIDStr = check_utf8(shift); 1216 1228 my $givenJID = new Net::Jabber::JID; 1217 1229 $givenJID->SetJID($givenJIDStr); -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber/Connection.pm
r892568b re0ffe77 1 1 use warnings; 2 2 use strict; 3 use utf8; 3 4 4 5 =head1 NAME
Note: See TracChangeset
for help on using the changeset viewer.