Ignore:
Timestamp:
Jun 9, 1999, 10:16:53 PM (26 years ago)
Author:
phaller
Message:

Fix: various unicode fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/unicode.cpp

    r81 r83  
    11/*
    2  *
    32 * Project Odin Software License can be found in LICENSE.TXT
    4  *
    5  */
    6 /*
    73 * Unicode functions
    8  *
    94 * Copyright 1998 Joel Troster
    10  *
     5 * Copyright 1999 Patrick haller
    116 */
    127#include <os2win.h>
     
    136131  }
    137132  else
    138   {
    139    for(i = 0; i < unilen; i++) {
    140         astring[i] = (char)ustring[i];
    141    }
    142    astring[unilen] = 0;
    143   }
     133   /* idiots unicode conversion :) */
     134   for(i = 0; i < unilen; i++)
     135     astring[i] = (char)ustring[i];
     136
     137  astring[unilen] = 0; // @@@PH: 1999/06/09 fix - always terminate string
     138
    144139  return(unilen);
    145140}
     
    217212
    218213  unicode[asciilen] = 0;
     214//SvL: Messes up the heap
     215//  unicode[len+1] = 0; /* @@@PH 98/06/07 */
    219216}
    220217//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.