Skip to content

Commit 0a013c5

Browse files
committed
fix(hotfix): resolve encoding crash, update links/branding, bump v1.0.3
1 parent ebdb746 commit 0a013c5

File tree

12 files changed

+45
-25
lines changed

12 files changed

+45
-25
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to RatioForge will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.3] - 2026-01-18
9+
10+
### Fixed
11+
- **Critical Runtime Error**: Fixed `System.NotSupportedException: No data is available for encoding 1252` by registering `CodePagesEncodingProvider`. This is required for .NET 8 to support legacy encodings widely used in torrent files.
12+
813
## [1.0.2] - 2026-01-18
914

1015
### Fixed

RatioForge-v1.0.2.zip

183 KB
Binary file not shown.

RatioForge-v1.0.3.zip

1.18 MB
Binary file not shown.

Source/RatioForge/AboutForm.Designer.cs

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/RatioForge/AboutForm.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ private void AboutForm_Load(object sender, EventArgs e)
2626

2727
private void linkGitHubPage_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
2828
{
29-
Process.Start(Links.GitHubPage);
29+
Links.OpenUrl(Links.GitHubPage);
3030
}
3131

3232
private void linkAuthorWebSite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
3333
{
34-
Process.Start(Links.OriginalAuthorPage);
34+
Links.OpenUrl(Links.OriginalAuthorPage);
3535
}
3636

3737
private void linkEMail_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
3838
{
39-
Process.Start(Links.MailToContact);
39+
Links.OpenUrl(Links.MailToContact);
4040
}
4141

4242
private void linkWebSite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
4343
{
44-
Process.Start(Links.ProgramPage);
44+
Links.OpenUrl(Links.ProgramPage);
4545
}
4646
}
4747
}

Source/RatioForge/Links.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,17 @@ internal static class Links
1717

1818
public const string PayPal = "https://github.com/tsautier/RatioForge"; // TODO: Update with valid donation link if needed
1919
public const string AuthorPage = ProgramPage;
20+
21+
public static void OpenUrl(string url)
22+
{
23+
try
24+
{
25+
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(url) { UseShellExecute = true });
26+
}
27+
catch (System.Exception ex)
28+
{
29+
System.Windows.Forms.MessageBox.Show("Could not open URL: " + url + "\r\nError: " + ex.Message, "Error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
30+
}
31+
}
2032
}
2133
}

Source/RatioForge/MainForm.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,27 +270,27 @@ private void MainForm_Resize(object sender, EventArgs e)
270270

271271
private void goToProgramPageToolStripMenuItem_Click(object sender, EventArgs e)
272272
{
273-
Process.Start(Links.ProgramPage);
273+
Links.OpenUrl(Links.ProgramPage);
274274
}
275275

276276
private void goToGitHubPageToolStripMenuItem_Click(object sender, EventArgs e)
277277
{
278-
Process.Start(Links.GitHubPage);
278+
Links.OpenUrl(Links.GitHubPage);
279279
}
280280

281281
private void goToAuthorPageToolStripMenuItem_Click(object sender, EventArgs e)
282282
{
283-
Process.Start(Links.AuthorPage);
283+
Links.OpenUrl(Links.AuthorPage);
284284
}
285285

286286
private void jOINToOurForumPleaseToolStripMenuItem_Click(object sender, EventArgs e)
287287
{
288-
Process.Start(Links.PayPal);
288+
Links.OpenUrl(Links.PayPal);
289289
}
290290

291291
private void lblCodedBy_Click(object sender, EventArgs e)
292292
{
293-
Process.Start(Links.AuthorPage);
293+
Links.OpenUrl(Links.AuthorPage);
294294
}
295295

296296
private void LoadSettings()

Source/RatioForge/NewVersionForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public NewVersionForm()
1515

1616
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
1717
{
18-
Process.Start(Links.ProgramPage);
18+
Links.OpenUrl(Links.ProgramPage);
1919
}
2020

2121
private void btnOK_Click(object sender, EventArgs e)
@@ -25,7 +25,7 @@ private void btnOK_Click(object sender, EventArgs e)
2525

2626
private void linkLabel1_LinkClicked_1(object sender, LinkLabelLinkClickedEventArgs e)
2727
{
28-
Process.Start(Links.GitHubPage);
28+
Links.OpenUrl(Links.GitHubPage);
2929
}
3030
}
3131
}

Source/RatioForge/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ internal static class Program
1111
[STAThread]
1212
internal static void Main()
1313
{
14+
// Fix for Encoding 1252 (System.NotSupportedException) in .NET Core/5+
15+
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
1416
Application.EnableVisualStyles();
1517
//// Application.SetCompatibleTextRenderingDefault(false);
1618
Application.Run(new MainForm());

Source/RatioForge/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
// Build Number
3030
// Revision
3131
//
32-
[assembly: AssemblyVersion("1.0.2.0")]
33-
[assembly: AssemblyFileVersion("1.0.2.0")]
32+
[assembly: AssemblyVersion("1.0.3.0")]
33+
[assembly: AssemblyFileVersion("1.0.3.0")]
3434
[assembly: NeutralResourcesLanguageAttribute("en")]

0 commit comments

Comments
 (0)