names[i] = new String(Converter.mbcsToWcs(null, types[i]));
String name = new String(Converter.mbcsToWcs(null, nameBuf)); names[index++] = "CLIPBOARD "+name; } for (int i = 0; i < primaryTypes.length; i++) { int ptr = OS.XmGetAtomName(xDisplay, primaryTypes[i]); int length = OS.strlen(ptr); byte[] nameBuf = new byte[length]; OS.memmove(nameBuf, ptr, length); OS.XtFree(ptr);  String name = new String(Converter.mbcsToWcs(null, nameBuf)); names[index++] = "PRIMARY "+name;
public String[] getAvailableTypeNames() {	checkWidget();	byte[][] types = _getAvailableTypes();	String[] names = new String[types.length];	for (int i = 0; i < names.length; i++) {		/* Use the character encoding for the default locale */		names[i] = new String(Converter.mbcsToWcs(null, types[i]));	}	return names;}