• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • FMSLogo
  • Bugs
FMSLogo

WINDOWFILEEDIT writes UTF-8 BOM when contents are only ASCII

A Logo programming environment for Microsoft Windows

Brought to you by: david_costanzo
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Feature Requests
    • Bugs
    • Support Requests
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v_6.06x
  • v_6.07.X
  • v_6.08.X
  • v_6.10.X
  • v_6.11.X
  • v_6.13.X
  • v_6.22.X
  • v_6.25.X
  • v_6.26.X
  • v_6.27.X
  • v_6.28.X
  • v_6.29.X

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#560 WINDOWFILEEDIT writes UTF-8 BOM when contents are only ASCII

v_6.06x
closed-fixed
David Costanzo
None
5
2021-02-07
2021-02-02
David Costanzo
No

As of FMSLogo 8.0.0, WINDOWFILEEDIT always inserts a UTF-8 BOM at the beginning of every file it writes. As a result, programs which are saved in WINDOWFILEEDIT cannot be run by versions of FMSLogo prior to 8.0.0 or other Logo environments.

WINDOWFILEEDIT should be changed to only include a UTF-8 BOM if the contents include a non-ASCII character, following the behavior of SAVE.

How Reproducible:
Every time

Steps to Reproduce:

  1. Run: WINDOWFILEEDIT "myfile.lgo [].
  2. Type some ASCII characters, like show 1.
  3. Choose File -> Save and Exit.
  4. Examine the myfile.lgo in a hex editor.

What Happens:
myfile.lgo begins with the byte sequence EF BB BF.

Expected Result:
myfile.lgo contains begins with the ASCII characters that you typed into myfile.lgo.

Discussion

  • David Costanzo

    David Costanzo - 2021-02-07

    I have checked in a fix for this as [r5657]. Because this is conceptually a regression in FMSLogo 8.0.0 that impacts backward-compatibility, I plan to fast-track this fix into a micro-release: FMSLogo 8.0.2.

     

    Related

    Commit: [r5657]

    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2021-02-07
    • status: open-accepted --> closed-fixed
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
mdb logo