While working on Fedora10,unable to print double Quotes
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
While working on Fedora10,unable to print double Quotes
I am unable to type double quotes in first hit in VI editor.i need to press twice to get it printed once.
i also get the same problem in all applications of fedora 10. the same problem with single quotes. Even then while compiling C-programs (using gcc compiler) it shows the following errors-----------:
#include<stdio.h>
int main()
{
printf(¨hello world¨);
}
[Pratik@localhost ~]$ gcc 1.c
1.c: In function ‘main’:
1.c:5: error: stray ‘\302’ in program
1.c:5: error: stray ‘\250’ in program
1.c:5: error: ‘hello’ undeclared (first use in this function)
1.c:5: error: (Each undeclared identifier is reported only once
1.c:5: error: for each function it appears in.)
1.c:5: error: expected ‘)’ before ‘world’
1.c:5: error: stray ‘\302’ in program
1.c:5: error: stray ‘\250’ in program
[Pratik@localhost ~]$
While I don't have fedora, and can't reproduce your issues (or tell you
how to fix it) it looks like a locale-issue; what does your environment
say about language encodings, fonts and the likes?
It almost appears as if those chars (" and ') are being entered as some
funky unicode (\250) which the compiler doesn't know how to handle.
While I don't have fedora, and can't reproduce your issues (or tell you
how to fix it) it looks like a locale-issue; what does your environment
say about language encodings, fonts and the likes?
It almost appears as if those chars (" and ') are being entered as some
funky unicode (\250) which the compiler doesn't know how to handle.
Cheers,
Tink
I think you're right, Tink.
When I cut and paste the code for 1.c The "quotes" come out as a kind of German umlaut without the vowel underneath and not as quotes. When I replace the so-called quotes with quotes entered from my own keyboard the compilation goes correctly.
cheers,
jdk
I have Fedora running (several versions up to Fedora 10 on different PC's) and this is certainly not a typical Fedora as I have never run into it. It seems that keyboard input is messed up somehow and produces multi-byte input.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.