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.138

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.137 2003/05/31 01:14:27 mast Exp $ + || $Id: builtin.cmod,v 1.138 2003/07/28 14:47:38 mast Exp $   */      #include "global.h"
1778:    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;    }    }