Skip to content

Commit

Permalink
fix locale to en-US
Browse files Browse the repository at this point in the history
  • Loading branch information
don-vip committed Jul 29, 2024
1 parent 63b4842 commit 2ffaee5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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
5 changes: 5 additions & 0 deletions src/dotnet/MetadataExtractor.MediaLibraryProcessor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
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, """..\..\..\..\..\.."""));

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

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

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

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

0 comments on commit 2ffaee5

Please sign in to comment.