diff -ru --exclude=unxmacxp.* --exclude=CV* /Developer/OpenOffice/ports_x11_gcc2/psprint/source/printergfx/printerjob.cxx ./source/printergfx/printerjob.cxx --- /Developer/OpenOffice/ports_x11_gcc2/psprint/source/printergfx/printerjob.cxx Wed Jul 2 17:40:29 2003 +++ ./source/printergfx/printerjob.cxx Sat Nov 8 23:15:51 2003 @@ -867,7 +867,10 @@ /* Attach a job title */ ByteString jobTitle( aJobName->getStr(), RTL_TEXTENCODING_UTF8 ); - snprintf( jobOptions, kJobOptionsStringSize, "%s -t \"%s\"", jobOptions, jobTitle.GetBuffer() ); + if ( strstr(psprintPrintCmd.getStr(), "lpr ") > 0 ) + snprintf( jobOptions, kJobOptionsStringSize, "%s -T \"%s\"", jobOptions, jobTitle.GetBuffer() ); + else if ( strstr(psprintPrintCmd.getStr(), "lp ") > 0 ) + snprintf( jobOptions, kJobOptionsStringSize, "%s -t \"%s\"", jobOptions, jobTitle.GetBuffer() ); } /* Construct and execute the printing command */