LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-23-2009, 08:29 AM   #1
dancewithpratik
LQ Newbie
 
Registered: Feb 2009
Location: PUNE,INDIA
Distribution: Fedora10
Posts: 1

Rep: Reputation: 0
Exclamation 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 ~]$
 
Old 02-23-2009, 01:47 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

And welcome to LQ!

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
 
Old 02-23-2009, 01:57 PM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by Tinkster View Post
Hi,

And welcome to LQ!

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
 
Old 02-23-2009, 06:26 PM   #4
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
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.

linux

Last edited by gergely89; 02-27-2009 at 10:52 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with quotes and double quotes Andruha Slackware 6 01-02-2010 04:44 PM
shell scripting basics.. how to forward double quotes ?? m_kane Linux - General 3 01-31-2009 11:45 AM
Dual Boot Fedora10/WindowsXP (Fedora10 installed first) jalf86 Fedora 8 12-26-2008 03:40 PM
Bash - double quotes don't protect Exclamation marks geoff_f Programming 15 04-15-2007 09:10 PM
Using single quotes vs double quotes in PHP strings vharishankar Programming 6 07-11-2005 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration