Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix locale to en-US #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static async Task RunAsync(string repoRoot)
// Output will differ across different Java runtimes.
// Output has historically been produced by:
// C:\\Program Files\\Java\\jdk1.8.0_271\\bin\\java.exe
FileName = """C:\Program Files\Java\jdk-18.0.2.1\bin\java.exe""",
FileName = "java.exe",
Arguments = string.Join(
" ",
"-classpath", $"\"{xmpCoreLibraryPath}\";{javaSrcRoot}",
Expand Down
7 changes: 7 additions & 0 deletions src/dotnet/MetadataExtractor.MediaLibraryProcessor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
using MetadataExtractor.MediaLibraryProcessor;

using System;
using System.Globalization;
using System.IO;
using System.Threading;

// TODO support building libraries from source too

// TODO more robust way of finding repo root path
string repoRoot = Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, """..\..\..\..\..\.."""));

var culture = CultureInfo.GetCultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;

// Update .NET and Java metadata files
await Console.Out.WriteLineAsync("Updating metadata files...");

Expand All @@ -26,3 +32,4 @@
await DiffRunner.RunAsync(repoRoot);

await Console.Out.WriteLineAsync("Done.");