CANopenNode/CANopenEditor

Exporter writes lowercase "i" to "ı" when exporting CanOpenNode

ihsanliturk opened this issue · 6 comments

I'm using Turkish language settings. When I try to export CanOpenNode command, it exports "identitiy" as "ıdentity". I can correct this with a simple find/replace, but it will be better corrected in the source code.

Here is the output in OD.h file:

struct {
    uint8_t highestSub_indexSupported;
    uint32_t vendor_ID;
    uint32_t productCode;
    uint32_t revisionNumber;
    uint32_t serialNumber;
} x1018_ıdentity;

might be fixed in ea8c040. Please test!

I am also having problems with Turkish characters. Namely,

  • 'ı' instead of 'i'
  • 'İ' instead of 'I'
  • Some ".attribute = ," content being empty
  • Disappearance of "define" symbols in "OD.h"

So I wrote a simple 'python' code. If you run it where your OD.c and OD.h files are, it will make the necessary changes.
You can make minor changes to the python code if there are different bugs that need to be changed.
Bugfix_OD_Files.zip

Which version do you have tested?

Which version do you have tested?

I tested in this version: v4.0-51-g2d9b1ad

It makes more sense to test the actual binaries where a lot of bug are fixed.
Also this bug (hopefully).

Please give a feedback after testing the actual binaries, if your are happy with the fixes for this problem.

Will be closed in a few days due to lack of feedback