PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Spurious error ("Illegal character \0") on '\xFF'

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
luchezar



Joined: 12 Jan 2012
Posts: 1

PostPosted: Fri Jan 13, 2012 1:03 pm    Post subject: Spurious error ("Illegal character \0") on '\xFF' Reply with quote

The following simple file ("test.c"):
Code:
#include <stdio>
int main()
{
    printf("България\n");
}

causes the following two PGCC errors:

PGC-S-0026-Unmatched double quote (test.c: 3)
PGC-F-0025-Illegal character: '\0' (test.c: 4)

Unlike PGCC, PGCPP successfully compiles it.
The encoding I use is the standard Windows encoding for Cyrillic letters, "Windows-1251". If I replace the last character of the string "България" (ASCII code 255) with "\xff" in the string (so that it becomes "Българи\xff"), PGCC also successfully compiles it.

This seems like a bug. If so, please report it to the developer team. Alas, I can't leave my code with "\xff"s instead of the "я"s, since I'd like it to allow easy transcoding of the Cyrillic strings in it from one encoding to another (e.g. from "Windows-1251" to "UTF-8").
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6129
Location: The Portland Group Inc.

PostPosted: Mon Jan 16, 2012 9:34 am    Post subject: Reply with quote

Hi luchezar,

Thanks for the report. I've submitted a problem report (TRS#18049) and sent it to our engineers for further investigation.

- Mat
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 438

PostPosted: Sun May 19, 2013 1:51 pm    Post subject: Reply with quote

luchezar,

Some late housekeeping. The problem 18049 was corrected in the 12.2 release.

regards,
dave
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group