Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
0744d21c
Commit
0744d21c
authored
Aug 24, 2021
by
Evan W. Patton
Committed by
Jeffrey Schiller
Aug 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix building apps with non-ASCII app names
Change-Id: Idf2d133b1c3007a545af6a99c8e0b085bb9adb35
parent
84beed57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
appinventor/buildserver/src/com/google/appinventor/buildserver/Project.java
...erver/src/com/google/appinventor/buildserver/Project.java
+3
-12
No files found.
appinventor/buildserver/src/com/google/appinventor/buildserver/Project.java
View file @
0744d21c
...
...
@@ -11,6 +11,7 @@ import com.google.common.collect.Lists;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.IOException
;
import
java.io.InputStreamReader
;
import
java.io.UnsupportedEncodingException
;
import
java.util.List
;
import
java.util.Properties
;
...
...
@@ -145,11 +146,8 @@ public final class Project {
// Load project file
properties
=
new
Properties
();
FileInputStream
in
=
new
FileInputStream
(
file
);
try
{
try
(
InputStreamReader
in
=
new
InputStreamReader
(
new
FileInputStream
(
file
)))
{
properties
.
load
(
in
);
}
finally
{
in
.
close
();
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
...
...
@@ -264,14 +262,7 @@ public final class Project {
* @return app name
*/
public
String
getAName
()
{
//The non-English character set can't be shown properly and need special encoding.
String
appName
=
properties
.
getProperty
(
ANAMETAG
);
try
{
appName
=
new
String
(
appName
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
);
}
catch
(
UnsupportedEncodingException
e
)
{
}
catch
(
NullPointerException
e
)
{
}
return
appName
;
return
properties
.
getProperty
(
ANAMETAG
,
properties
.
getProperty
(
NAMETAG
));
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment