[SOLVED] Code format function corrupt a strings with russian symbols

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Code format function corrupt a strings with russian symbols

    Hello!

    SEGGER Embedded Studio for ARM Release 4.52a Build 2020040700.41898 Windows x64

    I tried use SEGGER Embedded Studio and faced with next limitation:
    after use the function "format" strings with russian symbols are corrupted (in the code itself and in the comments).

    Original example code:

    C Source Code

    1. int main(void) {
    2. /* Тест */
    3. int i;
    4. char* desc[] = {
    5. [0] = "Описание-0\n",
    6. [1] = "Описание-1\n"
    7. };
    8. for (i = 0; i < 100; i++) {
    9. printf("Привет, мир! %d!\n", i); /* Привет, мир! */
    10. printf(desc[0]);
    11. printf(desc[1]);
    12. }
    13. do {
    14. i++;
    15. } while (1);
    16. }
    Display All


    After "format":

    C Source Code

    1. int main(void) {
    2. /* Òåñò */
    3. int i;
    4. char *desc[] = {
    5. [0] = "Îïèñàíèå-0\n",
    6. [1] = "Îïèñàíèå-1\n"};
    7. for (i = 0; i < 100; i++) {
    8. printf("Ïðèâåò, ìèð! %d!\n", i); /* Ïðèâåò, ìèð! */
    9. printf(desc[0]);
    10. printf(desc[1]);
    11. }
    12. do {
    13. i++;
    14. } while (1);
    15. }
    Display All
  • Hello,

    Thank you for your inquiry.
    The reported behaviour is reproducible. We are currently investigating. We will keep you posted about our findings.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Quick update. This should be fixed in the latest Embedded Studio V4.52b.
    Can you verify this?

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Release 4.52b Build 2020042000.41974 Windows x64
    The problem persists.
    Addition. After file saving and reopening, the strings look a little different.

    C Source Code

    1. int main(void) {
    2. /* Oano */
    3. int i;
    4. char *desc[] = {
    5. [0] = "Iienaiea-0\n",
    6. [1] = "Iienaiea-1\n"};
    7. for (i = 0; i < 100; i++) {
    8. printf("I?eaao, ie?! %d!\n", i); /* I?eaao, ie?! */
    9. printf(desc[0]);
    10. printf(desc[1]);
    11. }
    12. do {
    13. i++;
    14. } while (1);
    15. }
    Display All
  • Hi,

    Sorry I jumped the gun here. It will be fixed in the next release 4.52c.
    To get notified when the new version is released you can subscribe here:
    segger.com/notification/subscribe.php?prodid=196

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.