Self re-encoding interpreted application

US10579347B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10579347-B2
Application numberUS-201715803055-A
CountryUS
Kind codeB2
Filing dateNov 3, 2017
Priority dateNov 3, 2017
Publication dateMar 3, 2020
Grant dateMar 3, 2020

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method for self re-encoding an interpreted application includes parsing a string of characters in a comment section of the interpreted application file. Responsive to determining that at least one character of the string of characters is not readable by the target platform, the processor re-encodes the interpreted application file using the string of characters in the comment section. The re-encoding includes parsing a first character in the string of characters. The processor then, optionally, outputs a warning message indicative that a non-native encoding exists in the interpreted application file. The processor parses a second character sequential to the first character. The second character is a first element in a second string of characters indicative of a re-encoding scheme for re-encoding the interpreted application. The processor then outputs a re-encoded application file that is executable by the processor of the target platform.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for re-encoding an interpreted application file, comprising: parsing, via a processor, a string of characters in a comment section of the interpreted application file; responsive to determining that at least one character of the string of characters is not readable by a target platform, re-encoding, via the processor, the interpreted application file using the string of characters in the comment section, the re-encoding comprising: parsing, via the processor, a first character in the string of characters; outputting, via the processor, a warning message indicative that a non-native encoding exists in the interpreted application file; parsing, via the processor, a second character sequential to the first character, wherein the second character is a first element in a second string of characters indicative of a re-encoding scheme for re-encoding the interpreted application, wherein both the first string of characters and the second string are solely in the comment section of the application file and not in a mainline code section of the application file; and outputting, via the processor, a re-encoded application file that is executable by the target platform, the outputting based on the interpreted application file, wherein the processor re-encodes the application file using the second string, wherein outputting the warning message comprises outputting the warning message to an empty device such that the warning message is suppressed and not visible to a user. 2. The method of claim 1 , wherein the string of characters in the comment section of the interpreted application file comprises one or more of an American Standard Code for Information Interchange (ASCII) encoding scheme and a Unicode encoding scheme. 3. The method of claim 1 , wherein re-encoded application file comprises a mainline code section re-encoded to an Extended Binary Coded Decimal Interchange Code (EBCDIC) encoding scheme. 4. The method of claim 1 , wherein the second string of characters comprises instructions for re-encoding that, when executed by a second processor running a second platform operating system dissimilar to the target platform, are ignored by the second platform operating system. 5. The method of claim 1 , wherein the outputting the warning message indicative that the non-native encoding exists in the interpreted application file is optionally output. 6. A system for re-encoding an interpreted application file for execution by a target platform, the system comprising a processor configured to: parse a string of characters in a comment section of the interpreted application file; responsive to determining that at least one character of the string of characters is not readable by the target platform, re-encode the interpreted application file using the string of characters in the comment section, the processor configured to: parse a first character in the string of characters; output a warning message indicative that a non-native encoding exists in the interpreted application file; parse a second character sequential to the first character, wherein the second character is a first element in a second string of characters indicative of a re-encoding scheme for re-encoding the interpreted application, wherein both the first string of characters and the second string are solely in the comment section of the application file and not in a mainline code section of the application file; and output a re-encoded application file that is executable by the processor of the target platform, the outputting based on the interpreted application file, wherein the processor re-encodes the application file using the second string, wherein outputting the warning message comprises outputting the warning message to an empty device such that the warning message is suppressed and not visible to a user. 7. The system of claim 6 , wherein the string of characters in the comment section of the interpreted application file comprises one or more of an American Standard Code for Information Interchange (ASCII) encoding scheme and a Unicode encoding scheme. 8. The system of claim 6 , wherein re-encoded application file comprises a mainline code section re-encoded to an Extended Binary Coded Decimal Interchange Code (EBCDIC) encoding scheme. 9. The system of claim 6 , wherein the second string of characters comprises instructions for re-encoding that, when executed by a second processor running a second platform operating system dissimilar to the target platform, are ignored by the second platform operating system. 10. The system of claim 6 , wherein the outputting the warning message indicative that the non-native encoding exists in the interpreted application file is optionally output. 11. A computer program product for re-encoding an interpreted application file, the computer program product comprising: a storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: parsing, via processor, a string of characters in a comment section of the interpreted application file; responsive to determining that at least one character of the string of characters is not readable by a target platform, re-encoding, via the processor, the interpreted application file using the string of characters in the comment section, the re-encoding comprising: parsing, via the processor, a first character in the string of characters; outputting, via the processor, a warning message indicative that a non-native encoding exists in the interpreted application file; parsing, via the processor, a second character sequential to the first character, wherein the second character is a first element in a second string of characters indicative of a re-encoding scheme for re-encoding the interpreted application, wherein both the first string of characters and the second string are solely in the comment section of the application file and not in a mainline code section of the application file; and outputting, via the processor, a re-encoded application file that is executable by the target platform, the outputting based on the interpreted application file, wherein the processor re-encodes the application file using the second string, wherein outputting the warning message comprises outputting the warning message to an empty device such that the warning message is suppressed and not visible to a user. 12. The computer program product of claim 11 , wherein the string of characters in the comment section of the interpreted application file comprises one or more of an American Standard Code for Information Interchange (ASCII) encoding scheme and a Unicode encoding scheme. 13. The computer program product of claim 11 , wherein re-encoded application file comprises a mainline code section re-encoded to an Extended Binary Coded Decimal Interchange Code (EBCDIC) encoding scheme. 14. The computer program product of claim 11 , wherein the second string of characters comprises instructions for re-encoding that, when executed by a second processor running a second platform operating system dissimilar to the target platform, are ignored by the second platform operating system.

Assignees

Inventors

Classifications

  • Source to source · CPC title

  • Fat binaries · CPC title

  • G06F8/76Primary

    Adapting program code to run in a different environment; Porting · CPC title

  • Character encoding · CPC title

  • Event-based monitoring · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10579347B2 cover?
A method for self re-encoding an interpreted application includes parsing a string of characters in a comment section of the interpreted application file. Responsive to determining that at least one character of the string of characters is not readable by the target platform, the processor re-encodes the interpreted application file using the string of characters in the comment section. The re-…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F8/76. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Mar 03 2020 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 5 related publications on this page (citations in our corpus or others sharing the same primary CPC).