[GRASS5] Re: [GRASSLIST:6773] Re: using linux/unix ASCII files on Grass MAC OS X

Hamish wrote:
> Auto detection and conversion at input time of old Mac->UNIX format
> has already been fixed for GRASS in CVS, and will appear in the next
> version. DOS formatted text is already supported in the current
> version.

Was it realy fixed in all modules which take text as input?

No, mainly for 'v.in.ascii format=points'.

'v.in.ascii format=standard' and (many) other modules still need to be
updated.

two lists follow, code still using G_getl() and code using fgets().
Not all code will need to use the new G_getl2(), but a starting point
for where we should look.

using G_getl():
---------------
display/d.mapgraph/read_line.c
display/d.paint.labels/do_labels.c
general/manage/lib/read_list.c
imagery/i.ortho.photo/libes/cam_info.c
imagery/i.ortho.photo/libes/conz_points.c
imagery/i.ortho.photo/libes/init_info.c
imagery/i.ortho.photo/libes/ls_cameras.c
imagery/i.ortho.photo/libes/ls_elev.c
imagery/i.ortho.photo/libes/ref_points.c
imagery/i.ortho.photo/libes/title_camera.c
include/gisdefs.h
lib/gis/env.c
lib/gis/cats.c
lib/gis/cell_title.c
lib/gis/datum.c
lib/gis/dig_title.c
lib/gis/get_ellipse.c
lib/gis/getl.c
lib/gis/history.c
lib/gis/key_value2.c
lib/gis/myname.c
lib/gis/put_title.c
lib/gis/rd_cellhd.c
lib/gis/latex/getl_8c.tex
lib/gis/latex/refman.idx
lib/gis/latex/refman.ps
lib/init/clean_temp.c
lib/proj/datum.c
lib/proj/ellipse.c
lib/imagery/ls_groups.c
lib/imagery/points.c
lib/imagery/title.c
lib/gmath/la.c
lib/g3d/g3dcats.c
ps/ps.map/comment.c
ps/ps.map/do_header.c
ps/ps.map/input.c
raster/r.average/main.c
raster/r.in.arc/gethead.c
raster/r.in.ascii/gethead.c
raster/r.kappa/stats.c
raster/r.report/stats.c
sites/s.in.ascii/get_site.c
vector/v.reclass/rules.c

using fgets():
--------------
db/base/execute.c
display/d.rast/main.c
display/d.text/main.c
display/d.graph/do_graph.c
display/d.graph/graphics.c
display/d.histogram/get_stats.c
display/d.profile/Range.c
display/d.text.freetype/main.c
display/d.font.freetype/main.c
general/g.mapsets/get_path.c
general/manage/cmd/rename.c
general/manage/lib/empty.c
general/g.parser/main.c
general/g.setproj/get_stp.c
general/g.proj/main.c
imagery/i.ask/popup.c
imagery/i.points/ask.c
imagery/i.ortho.photo/libes/camera.c
imagery/i.ortho.photo/libes/elev.c
imagery/i.ortho.photo/photo.2image/ask.c
imagery/i.ortho.photo/photo.2target/ask.c
imagery/i.vpoints/ask.c
imagery/i.vpoints/ask_lineclr.c
lib/db/sqlp/test/sqlptest.c
lib/db/dbmi_base/dbmscap.c
lib/db/dbmi_base/login.c
lib/fonts/for_grass/splitfont.c
lib/gis/error.c
lib/gis/parser.c
lib/gis/sites.c
lib/gis/cell_title.c
lib/gis/color_read.c
lib/gis/dig_title.c
lib/gis/getl.c
lib/gis/gets.c
lib/gis/histogram.c
lib/gis/list.c
lib/gis/put_title.c
lib/gis/quant_io.c
lib/gis/range.c
lib/gis/reclass.c
lib/gis/squeeze.c
lib/gis/timestamp.c
lib/gis/view.c
lib/gis/latex/getl_8c.tex
lib/gis/latex/refman.ps
lib/raster/parse_mon.c
lib/vector/dglib/examples/cr_from_a.c
lib/vector/dglib/examples/parse.c
lib/edit/edit_cellhd.c
lib/form/form.c
lib/imagery/ask.c
lib/imagery/group.c
lib/imagery/nfiles.c
lib/segment/try.c
lib/symbol/read.c
lib/g3d/g3dcolor.c
ps/ps.map/do_labels.c
ps/ps.map/do_masking.c
ps/ps.map/do_plt.c
ps/ps.map/do_psfiles.c
ps/ps.map/eps.c
ps/ps.map/makeprocs.c
ps/ps.map/session.c
raster/r.colors/rules.c
raster/r.mapcalc/mapcalc.l
raster/r.mapcalc/lex.yy.c
raster/r.coin/make_coin.c
raster/r.in.ascii/gethead.c
raster/r.in.poly/get_item.c
raster/r.in.poly/getformat.c
raster/r.le/r.le.patch/driver.c
raster/r.le/r.le.pixel/driver.c
raster/r.le/r.le.setup/polytocell/ply_t_bmif.c
raster/r.median/read_stats.c
raster/r.mfilter/getfilt.c
raster/r.mode/read_stats.c
raster/r.null/null.c
raster/r.out.mpeg/main.c
raster/r.param.scale/disp_matrix.c
raster/r.quant/read_rules.c
raster/r.reclass/input.c
raster/r.recode/read_rules.c
raster/r.statistics/read_stats.c
raster/r.what/main.c
raster/r.watershed/shed/com_line.c
raster3d/r3.mask/mask.c
raster3d/r3.null/mask.c
raster3d/r3.showdspf/main_ogl.c
sites/s.in.ascii/get_site.c
vector/v.convert/read.c
vector/v.extract/main.c
vector/v.transform/creat_trans.c
vector/v.transform/get_coor.c
vector/v.in.ascii/a2b.c
vector/v.in.ascii/head.c
vector/v.in.ascii/vina.diff
vector/v.segment/main.c
vector/v.net.path/path.c
visualization/xganim/main.c

Hamish