mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fix of
"Unicode char like for example "ł" crush app when used in profile name" https://github.com/prusa3d/Slic3r/issues/388 The Prusa3D binary builds are missing the UTF8 libraries. To avoid having to bundle them, the case sensitive regexes testing file suffixes were replaced with explicit enumeration of lower / upper case letters. While crude, it avoids triggering the UTF8 library.
This commit is contained in:
parent
32213ce679
commit
6f28818f87
13 changed files with 26 additions and 22 deletions
|
@ -178,7 +178,7 @@ sub save_preset {
|
|||
if (!defined $name) {
|
||||
my $preset = $self->get_current_preset;
|
||||
my $default_name = $preset->default ? 'Untitled' : $preset->name;
|
||||
$default_name =~ s/\.ini$//i;
|
||||
$default_name =~ s/\.[iI][nN][iI]$//;
|
||||
|
||||
my $dlg = Slic3r::GUI::SavePresetWindow->new($self,
|
||||
title => lc($self->title),
|
||||
|
@ -1830,7 +1830,7 @@ sub accept {
|
|||
my ($self, $event) = @_;
|
||||
|
||||
if (($self->{chosen_name} = $self->{combo}->GetValue)) {
|
||||
if ($self->{chosen_name} !~ /^[^<>:\/\\|?*\"]+$/i) {
|
||||
if ($self->{chosen_name} !~ /^[^<>:\/\\|?*\"]+$/) {
|
||||
Slic3r::GUI::show_error($self, "The supplied name is not valid; the following characters are not allowed: <>:/\|?*\"");
|
||||
} elsif ($self->{chosen_name} eq '- default -') {
|
||||
Slic3r::GUI::show_error($self, "The supplied name is not available.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue