• 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

Saving gif image to PRN.gif

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

#621 Saving gif image to PRN.gif

v_6.06x
open
nobody
None
5
2026-06-16
2026-06-15
DanielAjoy
No

While working under Wine in Linux Mint, tried to save an image with the name PRN.gif but got this error:

gifsave "gifsNewlyGenerated/PRN.gif
Problem Generating GIF, check memory and diskspace

I expected it to save normally as it is not "PRN" (printer device) but "PRN.gif"

Discussion

  • DanielAjoy

    DanielAjoy - 2026-06-15

    Also noticed that the equivalent error message for BMPs is very different:

    bitsave "gifsNewlyGenerated/PRN.bmp
    Could not open .bmp
    

    I guess it means "Could not open for writing". But the error is kinda misleading in that it seems to want to open a file that is not even created yet.

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

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

    David Costanzo - 2026-06-16

    I installed wine on Fedora and reproduced the behavior you reported. On Windows 10, the behavior is the same, so Wine is faithfully reproducing the Windows behavior.

    Wine also comes with a notepad app. I tried to save a file called "PRN.txt" and it said that the file already exists, then gave me an "Access Denied" error. I suspect that's what you're seeing.

    There's no special code in FMSLogo to block creating a file name PRN.gif, this comes from the operating system. It's possible to bypass this checking, but doing so causes compatibility problems for people who use Windows. For example, I created PRN.txt and notepad couldn't open it. Explorer showed it, but couldn't move the file to Recycling Bin or rename it. Therefore, I don't think it's a good idea to do this.

    However, if you want to do it, then use something like

    BITSAVE "\\\\?\\c:\\Users\\daniel\\gifsNewlyGenerated\\PRN.bmp
    

    Basically, you add \\?\ to the beginning of the file and use an absolute file path.

     
    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