Viktor: >I'd like to ask everyone to try as many kinds of >builds as possible and report any results on the >list, so that we can clear up problems before >tagging 1.0.0.
Current Harbour code (Rev. 9045) build/run fine under OS/2 Przemek: Can you review old message included below ? David Macias Re: 2008-07-09 12:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) Przemek:
2008-07-09 12:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/set.c ! do not add .prn extension to printer/extra filenames if file name is one of well known device name: PRN, LPT[1-3], COM[1-9] This code is enabled only for OS2 builds where it's necessary but maybe MS-Windows/DOS users should think about adding it to their builds too because sometimes also DOS/Win does not recognize correctly device name when it has extension.
It work fine using PRN, LPT1 Now printing in OS/2 is enabled a) Can you add OS/2 to cases and set LPT1 as default ? /* Default printer device */ #if defined(HB_OS_UNIX) hb_set.HB_SET_PRINTFILE = hb_strdup( "|lpr" ); #elif defined(HB_OS_DOS) hb_set.HB_SET_PRINTFILE = hb_strdup( "PRN" ); #elif defined(HB_OS_WIN_32) hb_set.HB_SET_PRINTFILE = hb_strdup( "LPT1" ); #else hb_set.HB_SET_PRINTFILE = hb_strdup( "PRN" ); /* TOFIX */ #endif b) Can you add CON to device list to avoid extension ? Norton Guide say: ------------------------------------ If the destination is a device, the following names are valid: LPT1, LPT2, LPT3 (all parallel ports), COM1, and COM2 (serial ports), CON and PRN. The default device is PRN. ------------------------------------ I tested SET PRINTER TO CON in Clipper and work fine, sending output to console In Harbour it create CON.prn c) I strongly suggest to enable your code to avoid extension in all OS derived from DOS, which recognize/use same devices names It will suppress those prn.prn, lpt1.prn errors which are sometimes very often Note: I do not remember have seen them in DOS, but in Win are often David Macias _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour