Branch: Tag:

2003-07-28

2003-07-28 14:47:38 by Martin Stjernholm <mast@lysator.liu.se>

Fixed handling of wide strings in String.Buffer.get_copy (and hence in
_sprintf and cast).

Rev: src/builtin.cmod:1.107

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin.cmod,v 1.106 2003/04/07 16:19:15 mast Exp $ + || $Id: builtin.cmod,v 1.107 2003/07/28 14:47:38 mast Exp $   */      #include "global.h"
1605:    RETURN make_shared_binary_string0((p_wchar0 *)d,len);    break;    case 1: -  RETURN make_shared_binary_string1((p_wchar1 *)d,len>>1); +  RETURN make_shared_binary_string1((p_wchar1 *)d,len);    break;    case 2: -  RETURN make_shared_binary_string2((p_wchar2 *)d,len>>2); +  RETURN make_shared_binary_string2((p_wchar2 *)d,len);    break;    }    }