pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:2366:    }       len = pike_string_utf8_decode_length(STR0(in), in->len, args, extended, &shift);       if (len == in->len) {    /* 7bit in == 7bit out */    pop_n_elems(args-1);    return;    }    -  out = pike_string_utf8_decode(STR0(in), (enum size_shift)shift, len); +     -  +  out = pike_string_utf8_decode(STR0(in), in->len, (enum size_shift)shift, len, extended); +     pop_n_elems(args);       push_string(out);   }      /*! @decl string validate_utf8(utf8_string s)    *! @decl string validate_utf8(utf8_string s, int extended)    *!    *! Checks whether a string is a valid UTF-8 byte-stream.    *!