Skip to content

I20260612-1800

@HeikoKlare HeikoKlare tagged this 12 Jun 13:54
The TCHAR.codePage parameter has been ignored since Win9x support was
dropped. All call sites passed 0 (OS.CP_ACP) or the result of
Control.getCodePage() which unconditionally returned OS.CP_ACP = 0.

Remove the parameter from all four TCHAR constructors and update the
call sites. Also remove the now-dead Control.getCodePage() method, the
OS.CP_ACP constant, and the local cp/codePage variables that existed
solely to supply the argument.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

# Conflicts:
#	bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
#	bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java
#	bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java
# Conflicts:
#	bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
Assets 2
Loading