Shop OBEX P1 Docs P2 Docs Learn Events
SPIN Text Coding, UTF16, ASCII and GIT — Parallax Forums

SPIN Text Coding, UTF16, ASCII and GIT

MGreimMGreim Posts: 114
edited 2009-09-22 06:19 in Propeller 1
Hi,
i am using GIT as version control system. Its very easy to handle and
_very helpful_. One disadvantage of GIT is the lack of UTF16 support. So sometimes its a mess to commit SPIN files into git.
I tried to use
recode -f -g UTF-16..PC *.spin
(in Linux) to convert a file, but thats very dangerous, , mostly destroying the files.

I have seen that the forum software handles spin-files quite good. (upload and download).
So what tool are you using here?
Or is in 1.26 already an ASCII option? I am still using 1.25

Thanks for any hint

Markus

Comments

  • jazzedjazzed Posts: 11,803
    edited 2009-09-20 18:59
    I use a program (part of an unreleased package) to strip off the garbage and make it ASCII. I really don't need a schematics or pretty stars and bars in source code.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Steve

    Propeller Tools
  • BradCBradC Posts: 2,601
    edited 2009-09-20 22:57
    MGreim said...

    I have seen that the forum software handles spin-files quite good. (upload and download).
    So what tool are you using here?

    The forum software simply handles them as binary blobs. It does not try and diff them like GIT will.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lt's not particularly silly, is it?
  • MGreimMGreim Posts: 114
    edited 2009-09-21 07:38
    Hi BradC,

    are you sure? I uploaded some code some days ago, and downloaded it yesterday again (because i had shredder-ed my own source with recode..without backup..)
    And what i have seen that i got ASCII back, but maybe this was handled by my browser (Opera) i am not sure

    Markus
  • BradCBradC Posts: 2,601
    edited 2009-09-22 00:28
    MGreim said...
    Hi BradC,

    are you sure?

    Yes

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lt's not particularly silly, is it?
  • MGreimMGreim Posts: 114
    edited 2009-09-22 06:16
    This is only a test to check, what the forum software
    does with *.spin files

    Markus
  • MGreimMGreim Posts: 114
    edited 2009-09-22 06:19
    Hi BradC,
    you are right. Things happened by chance, or i can't reproduce/repeat what i have really done
    on Sunday

    Thanks

    Markus
Sign In or Register to comment.