From 9b09dce3a05daef6aa2763de629e6f72650794ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Svensson?= Date: Fri, 30 Aug 2024 12:00:25 +0200 Subject: [PATCH] __DATE__ should expand with the name of the month in English MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contributed by STMicroelectronics Signed-off-by: Torbjörn Svensson --- .../eclipse/cdt/internal/core/parser/scanner/DateMacro.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/DateMacro.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/DateMacro.java index 2aba20a48c8..df35967df52 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/DateMacro.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/DateMacro.java @@ -16,6 +16,7 @@ package org.eclipse.cdt.internal.core.parser.scanner; import java.text.DateFormatSymbols; import java.util.Calendar; +import java.util.Locale; import org.eclipse.cdt.core.parser.IToken; @@ -33,7 +34,7 @@ public final class DateMacro extends DynamicMacro { char[] charArray; StringBuilder buffer = new StringBuilder("\""); //$NON-NLS-1$ Calendar cal = Calendar.getInstance(); - DateFormatSymbols dfs = new DateFormatSymbols(); + DateFormatSymbols dfs = new DateFormatSymbols(Locale.ENGLISH); buffer.append(dfs.getShortMonths()[cal.get(Calendar.MONTH)]); buffer.append(" "); //$NON-NLS-1$ int dom = cal.get(Calendar.DAY_OF_MONTH);