byte [] buffer = Converter.wcsToMbcs (null, ctrl + alt + shift + key, true);
byte [] buffer = Converter.wcsToMbcs (null, allKeys.toString (), true);
public void setAccelerator (int accelerator) {	checkWidget();	this.accelerator = accelerator;	int ptr = 0;	if (accelerator != 0) {		String ctrl, alt, shift;		ctrl = alt = shift = "";		if ((accelerator & SWT.ALT) != 0) alt = "Meta ";		if ((accelerator & SWT.SHIFT) != 0) shift = "Shift ";		if ((accelerator & SWT.CTRL) != 0) ctrl = "Ctrl ";		int keysym = accelerator & ~(SWT.ALT | SWT.SHIFT | SWT.CTRL);		int newKey = Display.untranslateKey (keysym);		if (newKey != 0) {			keysym = newKey;		} else {			keysym = wcsToMbcs ((char) keysym);		}		String key = "<Key>" + keysymName (keysym);		/* Use the character encoding for the default locale */		byte [] buffer = Converter.wcsToMbcs (null, ctrl + alt + shift + key, true);				ptr = OS.XtMalloc (buffer.length);		if (ptr != 0) OS.memmove (ptr, buffer, buffer.length);	}	int [] argList = {OS.XmNaccelerator, ptr};	OS.XtSetValues (handle, argList, argList.length / 2);	if (ptr != 0) OS.XtFree (ptr);}