Menu ▾ ▴

#85 str_replace hangs on hudson test

open-fixed
None
5
2010-11-28
2010-11-27
No

This code, which is called during the hudson test, hangs:

IDL> x= str_replace( '1/(cm^2-s-sr)', '-', '!N-', 5 )
str_replace
STRING STRING = '1/(cm^2-s-sr)'
FIND STRING = '-'
NEW STRING = '!N-'
POS INT = 5
% Interrupt encountered.
% Interrupted at: STR_REPLACE 640 /root/.hudson/jobs/papco/workspace/papco_lib/string_functions.pro
IDL>

Discussion

  • Jeremy Faden

    Jeremy Faden - 2010-11-28

    this is fixed by moving the search start position as we replace characters.

     
  • Jeremy Faden

    Jeremy Faden - 2010-11-28
    • status: open --> open-fixed