The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Patch for wp34s assembler
Message #1 Posted by Marcel Samek on 26 June 2013, 5:35 p.m.

There is a minor bug in the wp34s assember. If you are running the assembler from a path that has a space in it, it will locate the preprocessor OK, but when it tries executing the preprocessor, the space in the path will cause the command line to fail.

The patch below puts the preprocessor path into quotes.

Index: wp34s_asm.pl
===================================================================
--- wp34s_asm.pl	(revision 3424)
+++ wp34s_asm.pl	(working copy)
@@ -1810,7 +1810,7 @@
   }
   $pp_location =~ s:\\:/:g;
   $pp_options = $no_skip_override if $no_skip_override;
-  $cmd = "${pp_location} $pp_options -cat $tmp_file";
+  $cmd = "\"${pp_location}\" $pp_options -cat $tmp_file";

if ($v3_mode) { $cmd .= " -v3";


[ Return to Index | Top of Index ]

Go back to the main exhibit hall