Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tiedosto ongelma.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Finnish
View previous topic :: View next topic  
Author Message
Diezel
l33t
l33t


Joined: 04 Feb 2003
Posts: 600
Location: Karjaa, Finland

PostPosted: Fri Dec 02, 2005 11:06 am    Post subject: Tiedosto ongelma. Reply with quote

Huomasin äsken että en pysty editoimaan tiedostoja Gentoo:ssa niin että ne toimisi Debian puolella. Eli .php tiedosto joka on kotikansiossa, NFS mountattu. Tämä löytyy myös www palvelimelta ja jos editoin tiedostoa niin se PHP heittää erroria. Tiedosto on täynnä ^M merkkejä Gentoo:ssa mutta ei Windows,Debian tai FreeBSD:ssä.
Mikäköhän avuksi? Varmaankin codepage väärin mutta minkä valitsee jotta se toimii?
_________________
A bus station is where a bus stops, a train station is where a train stops. On
my desk I have a work station..
Nixadmins.net
FLUG member 473
Back to top
View user's profile Send private message
Jormangeud
n00b
n00b


Joined: 05 Jul 2004
Posts: 24
Location: Finland

PostPosted: Sat Dec 03, 2005 9:12 pm    Post subject: Reply with quote

ainoo mountti mikä tohon voi vaikuttaa lienee fat ja sekin optiolla conv=[t|a]

siispä veikkaisin että editorisi ei hanskaa noita tiedostotyyppien muunnoksia.
jos editori on bash-pohjalla ni pitäis saada ctrl+v ctrl+m tehtyy noita ^M -merkkejä
muuten suosittelen editorin vaihtoa tai päivitystä, sillä jos ne php:t ei editoinnin jälkeen toimi ni editori kyl kusee.
tietenkin voit asentaa dos2unix ja unix2dos ohjelmat muokkauksen avuksi.

varmaan kannattaa kuitenkin heivata mäkeen ne kaikki windows tyyppiset rivinpäätteet, sed "s/^M/\n/g" auttaa :)
Back to top
View user's profile Send private message
Diezel
l33t
l33t


Joined: 04 Feb 2003
Posts: 600
Location: Karjaa, Finland

PostPosted: Sat Dec 03, 2005 11:48 pm    Post subject: Reply with quote

No editorina kokeiltu, Bluefish, Emacs, Vim. Jos ssh:lla menen kiinni Debian palvelimeen niin tiedostot vimillä on ok. Eli ei ongelmia. Ongelmat, näkyvät ainoastaan Fedorassa ja Gentoossa...olisko UTF-8 liittyvää?
_________________
A bus station is where a bus stops, a train station is where a train stops. On
my desk I have a work station..
Nixadmins.net
FLUG member 473
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Finnish All times are GMT
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